featurizer_api_client.utils package

Submodules

featurizer_api_client.utils.data module

class featurizer_api_client.utils.data.DataWrapper[source]

Bases: object

Class implementing data wrapper (wrapping and unwrapping data)

static unwrap_data(data)[source]

Unwraps the data (deserialize from JSON-string to numpy.ndarray)

static wrap_data(data)[source]

Wraps the data (serialize numpy.ndarray to JSON-string)

featurizer_api_client.utils.headers module

featurizer_api_client.utils.headers.get_header_with_access_token(access_token)[source]

Returns the header with the user access token.

Parameters

access_token (str) – access token

Returns

request header

Return type

dict

featurizer_api_client.utils.headers.get_header_with_authentication_credentials(username, password)[source]

Returns the header with the user authentication credentials.

Parameters
  • username (str) – username

  • password (str) – password

Returns

request header

Return type

dict

featurizer_api_client.utils.headers.get_header_with_refresh_token(refresh_token)[source]

Returns the header with the user refresh token.

Parameters

refresh_token (str) – refresh token

Returns

request header

Return type

dict

Module contents