A small example package
Project description
Cauldron: Simple singletons
Cauldron is a small, simple package that provides singleton functionality. Here's an example of how Cauldron can be used:
>>> class MySingleton(other_base_classes, SingletonMixin):
... def __init__(self, *args, **kwargs):
... # do stuff here
... pass
...
>>> singleton = MySingleton()
>>> other_singleton = MySingleton()
>>> id(singleton) == id(other_singleton)
True
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for cauldron_hedgenull-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb14884fad89b8c7a955bf77982201af9f523c76cb004dd8b41d15bca8553c7c |
|
MD5 | 6dbd78a0961b8b100518ac49b1da697d |
|
BLAKE2b-256 | e7d0a8b2175a3b65e7abf7c32f5d19ce38b14209a78e4e604df667a08e49167c |