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.10.tar.gz
(3.6 kB
view hashes)
Built Distribution
Close
Hashes for monostate-0.0.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65ec04035ac690c3bcee86052459cbd3122f4e6f4a87d4f88c994b4fb9e0db35 |
|
MD5 | 59366cafeb6e1380b11d6fc52ca5b9e5 |
|
BLAKE2b-256 | 3e1160e1ee691ddfb874a368fb7987f0d743acfe3c0d200f4d02c0ee1c861b86 |