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.7.tar.gz
(3.0 kB
view hashes)
Built Distribution
Close
Hashes for monostate-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf1db561b204c558fd9949a76e9f1a257ce5c5430b347ede4160b80912fc2782 |
|
MD5 | 9cc8d9a483072306854b46c54b5d065b |
|
BLAKE2b-256 | fdbba2304f96b283783db24bb8852dedcefec58289f6b4cb7d2c60a8a1d4fe7f |