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 Distribution
pyngleton-0.0.4.tar.gz
(10.6 MB
view hashes)
Built Distribution
Close
Hashes for pyngleton-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2cf4d0aaee2c1607c419e5a2f2a98ef9195f490dc78624d7bd1b4bd345f8c95a |
|
MD5 | aa87f88addd730645756d5c9a45f4db2 |
|
BLAKE2b-256 | cc7d9662d3094ba543e54078b14895467755d04c69649d87e1718989df2d0cf5 |