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.9.tar.gz
(3.2 kB
view hashes)
Built Distribution
Close
Hashes for monostate-0.0.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7deaecb2dcf762b7b79da1894b2ecde3ce73520a344076761dc712bf0a96a972 |
|
MD5 | 3813cc8bf4b1eab674cbffb5431498d6 |
|
BLAKE2b-256 | dba1a0e4e578a1d7f526e780e80b403ccd57d473e8b598d65fbf0c36a91bba0c |