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.6.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for monostate-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9bc3fa5b37c342aeae37689f9d554220bd5c1d27600b6cdbe181d849d53e6450 |
|
MD5 | 227fb6a891b48b144d4b820e08300e1f |
|
BLAKE2b-256 | bf495d51e6c9fbff48a5653a02a78214045b616d5c47686d2576d75fcac99fd5 |