brim.core.singleton.Singleton#

class brim.core.singleton.Singleton(*args, **kwargs)#

Bases: object

Makes a class a singleton via inheritance.

Attributes

Methods

__init__

activate

Activate the instance of the class.

deactivate

Deactivate the instance of the class.

__weakref__#

list of weak references to the object (if defined)

activate() None#

Activate the instance of the class.

deactivate() None#

Deactivate the instance of the class.