Skip to main content

monostate

Dependency-free python package, providing monostate owner base class through implementation of the borg pattern

Python 3.6 Build codecov PyPI MIT License

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

MIT

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)

Source distribution for monostate 0.0.12
File Size Uploaded
monostate-0.0.12.tar.gz 3.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for monostate 0.0.12
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.0.12 This release

2 release files

0.0.11

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page