Metadata-Version: 2.1
Name: alone
Version: 0.1.0
Summary: Metaclass that defines a class as a singleton
Home-page: https://github.com/AdrienHorgnies/py-singleton
Author-email: adrien.pierre.horgnies@gmail.com
License: MIT License
Keywords: singleton
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 2
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Description-Content-Type: text/markdown

# py-singleton
Metaclass that defines a class as a singleton.

[Kudo to theheadofabroom from SO for the implementation][so-post]

## Getting started

Python 2:
```python
import singletons.MetaSingleton

class YourClass(singletons.MetaSingleton):
    pass
```
Python 3:
```python
import singletons.MetaSingleton

class YourClass(metaclass=singletons.MetaSingleton):
    pass
```

[so-post]: https://stackoverflow.com/questions/6760685/creating-a-singleton-in-python



