demessaging.backend package
Core module for generating a de-messaging backend module.
This module defines the base classes to serve a general python module as a backend module in the DASF.
The most important members are:
|
Main function for starting a backend module from the command line. |
|
A base class for a backend module. |
A base class for a function model. |
|
A basis for class models |
Functions:
|
Main function for starting a backend module from the command line. |
- demessaging.backend.main(module_name: str = '__main__', *args, **config_kws) Type[BackendModule][source]
Main function for starting a backend module from the command line.
- Parameters:
doc (str) – The documentation of the object. If empty, this will be taken from the corresponding
__doc__attribute.registry (demessaging.config.registry.ApiRegistry) – Utilities for imports and encoders.
template (demessaging.template.Template) – The
demessaging.template.Templatethat is used to render the module for the generated API.messaging_config (Union[demessaging.config.messaging.PulsarConfig, demessaging.config.messaging.WebsocketURLConfig]) – Configuration on how to connect to the message broker.
listen_config (demessaging.config.backend.ListenConfig) – None
log_config (demessaging.config.logging.LoggingConfig) – Configuration for the logging.
debug (bool) – Run the backend module in debug mode (creates more verbose error messages).
members (List[Union[str, Callable, Type[object], Any]]) – List of members for this module
imports (str) – Imports that should be added to the generate API module.
json_schema_extra (Dict[str, Any]) – Any extra parameter for the JSON schema export for the function
Submodules
- demessaging.backend.class_ module
BackendClassBackendClassConfigBackendClassConfig.ClassBackendClassConfig.annotationsBackendClassConfig.class_nameBackendClassConfig.docBackendClassConfig.field_paramsBackendClassConfig.init_docBackendClassConfig.json_schema_extraBackendClassConfig.method_configsBackendClassConfig.methodsBackendClassConfig.model_configBackendClassConfig.modelsBackendClassConfig.nameBackendClassConfig.registryBackendClassConfig.reporter_argsBackendClassConfig.serializersBackendClassConfig.signatureBackendClassConfig.templateBackendClassConfig.update_from_cls()BackendClassConfig.validators
ClassAPIModel
- demessaging.backend.function module
BackendFunctionBackendFunctionConfigBackendFunctionConfig.annotationsBackendFunctionConfig.class_nameBackendFunctionConfig.docBackendFunctionConfig.field_paramsBackendFunctionConfig.functionBackendFunctionConfig.json_schema_extraBackendFunctionConfig.model_configBackendFunctionConfig.nameBackendFunctionConfig.registryBackendFunctionConfig.reporter_argsBackendFunctionConfig.return_annotationBackendFunctionConfig.return_serializerBackendFunctionConfig.return_validatorsBackendFunctionConfig.returnsBackendFunctionConfig.serializersBackendFunctionConfig.signatureBackendFunctionConfig.templateBackendFunctionConfig.update_from_function()BackendFunctionConfig.validators
FunctionAPIModelReturnModelget_return_model()
- demessaging.backend.module module
BackendModuleBackendModule.backend_configBackendModule.compute()BackendModule.create_model()BackendModule.generate()BackendModule.get_api_info()BackendModule.handle_message()BackendModule.listen()BackendModule.model_configBackendModule.model_json_schema()BackendModule.process_request()BackendModule.pulsarBackendModule.rootBackendModule.send_request()BackendModule.shell()BackendModule.test_connect()
BackendModuleConfigBackendModuleConfig.class_nameBackendModuleConfig.debugBackendModuleConfig.docBackendModuleConfig.importsBackendModuleConfig.json_schema_extraBackendModuleConfig.listen_configBackendModuleConfig.log_configBackendModuleConfig.membersBackendModuleConfig.messaging_configBackendModuleConfig.model_configBackendModuleConfig.modelsBackendModuleConfig.moduleBackendModuleConfig.registryBackendModuleConfig.template
ModuleAPIModel
- demessaging.backend.utils module