fastcs.transports.transport#

Members

Transport

A base class for transport's implementation so it can be used in FastCS.

class fastcs.transports.transport.Transport[source]#

A base class for transport’s implementation so it can be used in FastCS.

abstractmethod connect(controller_api: ControllerAPI, loop: AbstractEventLoop) None[source]#

Connect the Transport to the control system

The ControllerAPI should be exposed over the transport. The provided event loop should be used where required instead of creating a new one.

property context: dict[str, Any]#

Functions and variables to add to the context of the interactive shell

See FastCS.serve for usage.

abstractmethod async serve() None[source]#

Serve the ControllerAPI

This method will be spawned as an async background task in before launching the interactive shell, so it can (but doesn’t have to) block and run forever.