pyiron_snippets.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_snippets.singleton.Singleton(name, bases, namespace, /, **kwargs)[source]

Bases: ABCMeta

Implemented with suggestions from

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