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
Metadata
Release files for monostate 0.0.12
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| monostate-0.0.12.tar.gz | 3.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| monostate-0.0.12-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.5 kB
Release files / monostate-0.0.12.tar.gz
| Download URL | monostate-0.0.12.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8f0d616ff520e270557a816873a0e2a6a9d61bb5fcaaf4ebc863c7041ea37d97
|
|
BLAKE2b-256 checksum How to use checksums |
68b26a47d2c0f976564f6cfe2f6f2d82ff034bee13363e359d94e8d9619e0859
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.14 CPython/3.8.13 Linux/5.15.0-46-generic
|
Release files / monostate-0.0.12-py3-none-any.whl
| Download URL | monostate-0.0.12-py3-none-any.whl |
|---|---|
| Size | 3.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a0244532bf316f4d7348acc3bff9678412a7409e9c9c141a20c568385d994c02
|
|
BLAKE2b-256 checksum How to use checksums |
8c4e4acf2260a58aa08c1a99905cdce94df6cdcbd7ae7ac88f22ab66bcc12380
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.14 CPython/3.8.13 Linux/5.15.0-46-generic
|