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.8.tar.gz
(3.2 kB
view hashes)
Built Distribution
Close
Hashes for monostate-0.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ae10a45121b87009c6b8c44c81a2262c418cf05866250c9fb3f8efffe68f847 |
|
MD5 | f5f5f7fe92365f82597c308a7fd30e8b |
|
BLAKE2b-256 | d35710d2ea99578b98c2156286926628a2d5ed430bbd2b30d287b6c23c0483f9 |