frost.ext package

Submodules

frost.ext.cog module

class frost.ext.cog.Cog

Bases: object

Children of this class and its methods are automatically routed and then handled by frost.ext.handler.Handler. Private methods of the children are ignored and not routed. All children methods are automatically run as static methods.

Raises

DirectCogInstanceError – If this class is directly instantiated. This class can only be subclassed.

frost.ext.exceptions module

exception frost.ext.exceptions.DirectCogInstanceError

Bases: Exception

Raised if the Cog class is directly instantiated.

frost.ext.handler module

class frost.ext.handler.Handler

Bases: object

Handles incoming requests and executes methods according to the route path mapping.

handle(data: Dict[str, Any], **kwargs) → None

Handles the route and executes the resulting method.

Parameters

data (Dict[str, Any]) – Data received from the server

Module contents

class frost.ext.Cog

Bases: object

Children of this class and its methods are automatically routed and then handled by frost.ext.handler.Handler. Private methods of the children are ignored and not routed. All children methods are automatically run as static methods.

Raises

DirectCogInstanceError – If this class is directly instantiated. This class can only be subclassed.

class frost.ext.Handler

Bases: object

Handles incoming requests and executes methods according to the route path mapping.

handle(data: Dict[str, Any], **kwargs) → None

Handles the route and executes the resulting method.

Parameters

data (Dict[str, Any]) – Data received from the server