Metadata-Version: 2.1
Name: monostate
Version: 0.0.6
Summary: Dependency-free monostate owner base class
Home-page: https://github.com/w2sv/monostate
License: MIT
Keywords: singleton,borg,design-patterns,anti-patterns
Author: w2sv
Author-email: zangenbergjanek@googlemail.com
Requires-Python: >=3.6,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Project-URL: Repository, https://github.com/w2sv/monostate
Description-Content-Type: text/markdown

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

[![Python 3.6](https://img.shields.io/badge/python-3.6-blue.svg)](https://www.python.org/downloads/release/python-360/)
[![Build](https://github.com/w2sv/monostate/actions/workflows/build.yaml/badge.svg)](https://github.com/w2sv/monostate/actions/workflows/build.yaml)
[![codecov](https://codecov.io/gh/w2sv/monostate/branch/master/graph/badge.svg?token=9EESND69PG)](https://codecov.io/gh/w2sv/monostate)
![PyPI](https://img.shields.io/pypi/v/monostate)
[![MIT License](https://img.shields.io/apm/l/atomic-design-ui.svg?)](https://github.com/tterb/atomic-design-ui/blob/master/LICENSEs)

## Download
```
pip install monostate
```

## Usage

```python
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](LICENSE)

