Singleton

Singleton metaclass. used to easily create thread safe singleton classes

Classes

SingletonABCMeta

Bases: ABCMeta, type

SingletonMeta

Bases: type

This (meta) class is a thread safe singleton implementation. It should be used as a metaclass of a new class (NC), which will then provide a singleton-like class (i.e. an instance of the class NC will be a singleton)

This metaclass is used in several fedbiomed classes (Request, FedLogger,...)