A small example package
Project description
Thread-safe and process-safe singleton class. The singleton is shared between all threads. For every process, a new instance is initialized and shared between all threads of the process.
Use like this:
from pyngleton import Singleton
class MyClass(Singleton):
pass
a = MyClass()
b = MyClass()
assert a is b
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for pyngleton-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | afd756dd7965851b411df7e91e6ecef404b7f654151114918b333a795bb549de |
|
MD5 | ab11e285e364695cd450e232dba35161 |
|
BLAKE2b-256 | e00ee87aeb02189c0638403f9e833d03f97a61e45c1d4cce8ee8c75cf6105488 |