cowbird.services
Subpackages
Package Contents
Classes
Create service instance using service name. |
Functions
|
Obtains the services managed by the application. |
-
class
cowbird.services.
ServiceFactory
[source] Create service instance using service name.
-
get_service
(self: ServiceFactory, name: str) → cowbird.services.service.Service Instantiates a Service implementation using its name if it doesn’t exist or else returns the existing one from cache.
-
get_active_services
(self: ServiceFactory) → List[cowbird.services.service.Service] Return a sorted list by priority of Service implementation activated in the config.
-
-
cowbird.services.
get_services
(container: cowbird.typedefs.AnySettingsContainer) → List[service.Service][source] Obtains the services managed by the application.