cowbird.services

Package Contents

Classes

ServiceFactory

Create service instance using service name.

Functions

get_services(→ List[service.Service])

Obtains the services managed by the application.

class cowbird.services.ServiceFactory[source]

Create service instance using service name.

create_service(name: ServiceFactory)cowbird.services.service.Service

Instantiates a new Service implementation using its name, overwriting an existing instance if required.

get_service(name: ServiceFactory)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()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.