Base handler#

class ExtensionBaseHandler(*args, **kwargs)[source]#

BaseHandler for all server-extension handler

data_received(chunk: bytes) Optional[Awaitable[None]][source]#

Implement this method to handle streamed request data.

Requires the .stream_request_body decorator.

May be a coroutine for flow control.

async get_assignment(lecture_id, assignment_id)[source]#
async get_lecture(lecture_id) dict[source]#
property grader_authentication_header#

Returns the authentication header

Returns

authentication header

Return type

dict

http_client = <tornado.httpclient.HTTPClient object>#
request_service = <grader_labextension.services.request.RequestService object>#
property service_base_url#
class HandlerConfig(**kwargs: Any)[source]#
hub_api_token#

A trait for unicode strings.

hub_api_url#

A trait for unicode strings.

hub_user#

A trait for unicode strings.

service_base_url#

A trait for unicode strings.