swh.core.api.asynchronous module

swh.core.api.asynchronous.encode_msgpack(data, **kwargs)[source]
swh.core.api.asynchronous.render_msgpack(request, data)[source]
swh.core.api.asynchronous.render_json(request, data)[source]
async swh.core.api.asynchronous.decode_request(request)[source]
async swh.core.api.asynchronous.error_middleware(app, handler)[source]
class swh.core.api.asynchronous.RPCServerApp(*args, **kwds)[source]

Bases: aiohttp.web_app.Application

client_exception_classes: Tuple[Type[Exception], …] = ()

Exceptions that should be handled as a client error (eg. object not found, invalid argument)

class swh.core.api.asynchronous.SWHRemoteAPI(*args, **kwargs)[source]

Bases: swh.core.api.asynchronous.RPCServerApp