pyiron_base.interfaces.singleton module

Utility functions used in pyiron. In order to be accessible from anywhere in pyiron, they must remain free of any imports from pyiron!

class pyiron_base.interfaces.singleton.Singleton(name, bases, namespace, /, **kwargs)

Bases: ABCMeta

Implemented with suggestions from

http://stackoverflow.com/questions/6760685/creating-a-singleton-in-python