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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

Supported by

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