brim.core.singleton.SingletonMeta#

class brim.core.singleton.SingletonMeta#

Bases: type

Metaclass for Singleton.

Attributes

Methods

__init__

activate

Activate the instance of the class.

deactivate

Deactivate the instance of the class.

mro

Return a type's method resolution order.

__call__(*args, **kwargs)#

Create a new instance of the class.

__delattr__(name, /)#

Implement delattr(self, name).

__dir__()#

Specialized __dir__ implementation for types.

__getattribute__(name, /)#

Return getattr(self, name).

__init__(*args, **kwargs)#
__instancecheck__(instance, /)#

Check if an object is an instance.

__new__(**kwargs)#
__or__(value, /)#

Return self|value.

__prepare__() dict#

used to create the namespace for the class statement

__repr__()#

Return repr(self).

__ror__(value, /)#

Return value|self.

__setattr__(name, value, /)#

Implement setattr(self, name, value).

__sizeof__()#

Return memory consumption of the type object.

__subclasscheck__(subclass, /)#

Check if a class is a subclass.

__subclasses__()#

Return a list of immediate subclasses.

__text_signature__ = None#
activate(instance: object) None#

Activate the instance of the class.

deactivate(instance: object)#

Deactivate the instance of the class.

mro()#

Return a type’s method resolution order.