Skip to main content

Dependency-free monostate owner base class

Project description

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

Project details


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

monostate-0.0.12-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

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

Hashes for monostate-0.0.12.tar.gz
Algorithm Hash digest
SHA256 8f0d616ff520e270557a816873a0e2a6a9d61bb5fcaaf4ebc863c7041ea37d97
MD5 e2db3b6f4fe08c056c840b1ddbd2973a
BLAKE2b-256 68b26a47d2c0f976564f6cfe2f6f2d82ff034bee13363e359d94e8d9619e0859

See more details on using hashes here.

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

Hashes for monostate-0.0.12-py3-none-any.whl
Algorithm Hash digest
SHA256 a0244532bf316f4d7348acc3bff9678412a7409e9c9c141a20c568385d994c02
MD5 6f5b3bba3e98fcf4dd41afa2232889ab
BLAKE2b-256 8c4e4acf2260a58aa08c1a99905cdce94df6cdcbd7ae7ac88f22ab66bcc12380

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page