api.wrappers package

Submodules

api.wrappers.data module

exception api.wrappers.data.DataUnwrappingException[source]

Bases: Exception

class api.wrappers.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)

exception api.wrappers.data.DataWrappingException[source]

Bases: Exception

api.wrappers.request module

exception api.wrappers.request.RequestUnwrappingException[source]

Bases: Exception

class api.wrappers.request.RequestWrapper[source]

Bases: object

Class implementing Request wrapper (wrapping and unwrapping requests)

static unwrap_request(request)[source]

Unwraps the request (deserialize from JSON-string)

static wrap_request(request)[source]

Wraps the request (serialize to JSON-string)

exception api.wrappers.request.RequestWrappingException[source]

Bases: Exception

api.wrappers.response module

class api.wrappers.response.HttpErrorWrapper(e)[source]

Bases: object

Class implementing HTTPError wrapper (wrapping errors)

exception api.wrappers.response.ResponseUnwrappingException[source]

Bases: Exception

class api.wrappers.response.ResponseWrapper[source]

Bases: object

Class implementing Response wrapper (wrapping and unwrapping responses)

static unwrap_response(response)[source]

Unwraps the response (deserialize from JSON-string)

static wrap_response(response)[source]

Wraps the response (serialize to JSON-string)

exception api.wrappers.response.ResponseWrappingException[source]

Bases: Exception

Module contents