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.12.tar.gz
(3.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file monostate-0.0.12.tar.gz.
File metadata
- Download URL: monostate-0.0.12.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.14 CPython/3.8.13 Linux/5.15.0-46-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8f0d616ff520e270557a816873a0e2a6a9d61bb5fcaaf4ebc863c7041ea37d97
|
|
| MD5 |
e2db3b6f4fe08c056c840b1ddbd2973a
|
|
| BLAKE2b-256 |
68b26a47d2c0f976564f6cfe2f6f2d82ff034bee13363e359d94e8d9619e0859
|
File details
Details for the file monostate-0.0.12-py3-none-any.whl.
File metadata
- Download URL: monostate-0.0.12-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.14 CPython/3.8.13 Linux/5.15.0-46-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a0244532bf316f4d7348acc3bff9678412a7409e9c9c141a20c568385d994c02
|
|
| MD5 |
6f5b3bba3e98fcf4dd41afa2232889ab
|
|
| BLAKE2b-256 |
8c4e4acf2260a58aa08c1a99905cdce94df6cdcbd7ae7ac88f22ab66bcc12380
|