Skip to content
/ monostate Public

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

License

Notifications You must be signed in to change notification settings

w2sv/monostate

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published