Dependency-free monostate owner base class
Project description
monostate
Dependency-free python package, providing monostate owner base class through implementation of the borg pattern
Download
pip install monostate
Usage
from monostate import MonoStateOwner
class MonoStateOwnerImplementation(MonoStateOwner):
def __init__(self, a, b):
super().__init__()
# initialize instance as per usual...
# Initialization of state:
MonoStateOwnerImplementation(69, 420)
# Instance retrieving:
instance = MonoStateOwnerImplementation.instance()
- Managing of multiple MonoStateOwner Subclasses with decoupled states supported
Author
Janek Zangenberg
License
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
monostate-0.0.12.tar.gz
(3.2 kB
view hashes)
Built Distribution
Close
Hashes for monostate-0.0.12-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0244532bf316f4d7348acc3bff9678412a7409e9c9c141a20c568385d994c02 |
|
MD5 | 6f5b3bba3e98fcf4dd41afa2232889ab |
|
BLAKE2b-256 | 8c4e4acf2260a58aa08c1a99905cdce94df6cdcbd7ae7ac88f22ab66bcc12380 |