Services

General

Common Service

class CommonService

Bases: object

An inheritable class that turns a class into a singleton, create an instance by invoking get().

Example usage:
class ExampleService(CommonService):
    @property
    def first_value(self) -> str:
        return 'yes'

# ExampleService.get() returns an instance of ExampleService.
# Calling ExampleService.get() again, will return the same instance.
ExampleService.get().first_value
classmethod get()

Retrieve an instance of the service

Returns:An instance of the service
Return type:The type of the inheriting class

Resource

Posture Constraints