cement.core.extension
Cement core extensions module.
- class cement.core.extension.ExtensionHandler(**kw: Any)[source]
Bases:
ExtensionInterface
,Handler
This handler implements the Extention Interface, which handles loading framework extensions. All extension handlers should sub-class from here, or ensure that their implementation meets the requirements of this base class.
- class Meta[source]
Bases:
Meta
Handler meta-data (can be passed as keyword arguments to the parent class).
- get_loaded_extensions() List[str] [source]
Get all loaded extensions.
- Returns:
A list of loaded extensions.
- Return type:
- list() List[str] [source]
Synonymous with
get_loaded_extensions()
.- Returns:
A list of loaded extensions.
- Return type:
- class cement.core.extension.ExtensionInterface(**kw: Any)[source]
Bases:
Interface
This class defines the Extension Interface. Handlers that implement this interface must provide the methods and attributes defined below. In general, most implementations should sub-class from the provided
ExtensionHandler
base class as a starting point.