caspia.homeserver.views package

Submodules

caspia.homeserver.views.base module

class caspia.homeserver.views.base.View(services, loop)[source]

Bases: sanic.views.HTTPMethodView

classmethod as_view(*class_args, **class_kwargs)

Return view function for use with the routing system, that dispatches request to appropriate handler method.

decorators = [<function authorized.<locals>.decorator>]
dispatch_request(request, *args, **kwargs)
error_response(status, message)[source]
property meadow_service
options(request, *args, **kwargs)[source]
property tile_service
property user_service
property wall_service

caspia.homeserver.views.meadow module

class caspia.homeserver.views.meadow.CharacteristicValueView(services, loop)[source]

Bases: caspia.homeserver.views.base.View

classmethod as_view(*class_args, **class_kwargs)

Return view function for use with the routing system, that dispatches request to appropriate handler method.

decorators = [<function authorized.<locals>.decorator>]
dispatch_request(request, *args, **kwargs)
error_response(status, message)
async get(request, service_name, characteristic_name)[source]
async get_characteristic(service_name, characteristic_name) → caspia.meadow.services.characteristic.Characteristic[source]
property meadow_service
options(request, *args, **kwargs)
static parse_value_and_extra(payload, characteristic: caspia.meadow.services.characteristic.Characteristic)[source]
async put(request, service_name, characteristic_name)[source]
property tile_service
translate_meadow_error(error, *, on_read)[source]
property user_service
property wall_service
class caspia.homeserver.views.meadow.NotificationsView(services, loop)[source]

Bases: caspia.homeserver.views.base.View

classmethod as_view(*class_args, **class_kwargs)

Return view function for use with the routing system, that dispatches request to appropriate handler method.

property consumer_conn
decorators = [<function authorized.<locals>.decorator>]
dispatch_request(request, *args, **kwargs)
error_response(status, message)
async get(request)[source]
property meadow_service
options(request, *args, **kwargs)
property tile_service
property user_service
property wall_service
async ws(request, ws)[source]
class caspia.homeserver.views.meadow.ServiceView(services, loop)[source]

Bases: caspia.homeserver.views.base.View

classmethod as_view(*class_args, **class_kwargs)

Return view function for use with the routing system, that dispatches request to appropriate handler method.

decorators = [<function authorized.<locals>.decorator>]
dispatch_request(request, *args, **kwargs)
error_response(status, message)
async get(request, service_name)[source]
property meadow_service
options(request, *args, **kwargs)
property tile_service
property user_service
property wall_service
class caspia.homeserver.views.meadow.ServicesView(services, loop)[source]

Bases: caspia.homeserver.views.base.View

classmethod as_view(*class_args, **class_kwargs)

Return view function for use with the routing system, that dispatches request to appropriate handler method.

decorators = [<function authorized.<locals>.decorator>]
dispatch_request(request, *args, **kwargs)
error_response(status, message)
async get(request)[source]
property meadow_service
options(request, *args, **kwargs)
property tile_service
property user_service
property wall_service

caspia.homeserver.views.tile module

class caspia.homeserver.views.tile.TileView(services, loop)[source]

Bases: caspia.homeserver.views.base.View

classmethod as_view(*class_args, **class_kwargs)

Return view function for use with the routing system, that dispatches request to appropriate handler method.

decorators = [<function authorized.<locals>.decorator>]
async delete(request, wall_identifier, tile_identifier)[source]
dispatch_request(request, *args, **kwargs)
error_response(status, message)
property meadow_service
options(request, *args, **kwargs)
async put(request, wall_identifier, tile_identifier)[source]
property tile_service
property user_service
property wall_service
class caspia.homeserver.views.tile.TilesView(services, loop)[source]

Bases: caspia.homeserver.views.base.View

classmethod as_view(*class_args, **class_kwargs)

Return view function for use with the routing system, that dispatches request to appropriate handler method.

decorators = [<function authorized.<locals>.decorator>]
dispatch_request(request, *args, **kwargs)
error_response(status, message)
property meadow_service
options(request, *args, **kwargs)
async post(request, wall_identifier)[source]
property tile_service
property user_service
property wall_service

caspia.homeserver.views.wall module

class caspia.homeserver.views.wall.WallView(services, loop)[source]

Bases: caspia.homeserver.views.base.View

classmethod as_view(*class_args, **class_kwargs)

Return view function for use with the routing system, that dispatches request to appropriate handler method.

decorators = [<function authorized.<locals>.decorator>]
async delete(request, identifier)[source]
dispatch_request(request, *args, **kwargs)
error_response(status, message)
async get(request, identifier)[source]
property meadow_service
options(request, *args, **kwargs)
async patch(request, identifier)[source]
property tile_service
property user_service
property wall_service
class caspia.homeserver.views.wall.WallsView(services, loop)[source]

Bases: caspia.homeserver.views.base.View

classmethod as_view(*class_args, **class_kwargs)

Return view function for use with the routing system, that dispatches request to appropriate handler method.

decorators = [<function authorized.<locals>.decorator>]
dispatch_request(request, *args, **kwargs)
error_response(status, message)
async get(request)[source]
property meadow_service
options(request, *args, **kwargs)
async post(request)[source]
property tile_service
property user_service
property wall_service

Module contents