Metadata-Version: 2.1
Name: pattern_singleton
Version: 0.1.0
Summary: My implementation of Singleton Design Pattern based on metaclass method.
Home-page: https://github.com/MarcinMysliwiec/pattern_singleton
Author: Marcin Mysliwiec
Author-email: marcin.mysliw@gmail.com
License: MIT license
Description: =================
        Pattern Singleton
        =================
        
        
        .. image:: https://img.shields.io/pypi/v/pattern_singleton.svg
                :target: https://pypi.python.org/pypi/pattern_singleton
                :alt: PyPi
        
        .. image:: https://img.shields.io/travis/MarcinMysliwiec/pattern_singleton.svg
                :target: https://travis-ci.com/MarcinMysliwiec/pattern_singleton
                :alt: Build
        
        .. image:: https://codecov.io/gh/MarcinMysliwiec/pattern_singleton/branch/master/graph/badge.svg?token=ZJCBWXAJPR
                :target: https://codecov.io/gh/MarcinMysliwiec/pattern_singleton
                :alt: Coverage
        
        .. image:: https://pyup.io/repos/github/MarcinMysliwiec/pattern_singleton/shield.svg
                :target: https://pyup.io/repos/github/MarcinMysliwiec/pattern_singleton/
                :alt: Updates
        
        
        Description
        ~~~~~~~~~~~~
        
        My implementation of Singleton Design Pattern based on metaclass method.
        
        
        * Free software: MIT license
        * Documentation: https://pattern-singleton.readthedocs.io.
        
        Installation
        ~~~~~~~~~~~~
        
        Just use (No other package is needed):
        
        .. code-block:: sh
        
            $ pip install patternSingleton
        
        
        Example Usage
        ~~~~~~~~~~~~~
        
        .. code-block:: python
        
            from patternSingleton import Singleton
        
        
            class Example(metaclass=Singleton):
                def __init__(self):
                    self.variable = 1
        
        
            if __name__ == '__main__':
                example_01 = Example()
                example_02 = Example()
        
                print(example_01.variable)  # displays 1
                print(example_02.variable)  # displays 1
        
                example_01.variable = 2     # changes value for every instance of Example class
        
                print(example_01.variable)  # displays 2
                print(example_02.variable)  # displays 2
        
        
        Credits
        -------
        
        This package was created by `Marcin Mysliwiec <https://github.com/MarcinMysliwiec>`__ with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.
        
        .. _Cookiecutter: https://github.com/audreyr/cookiecutter
        .. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage
        
        
        =======
        History
        =======
        
        0.1.0 (2020-10-20)
        ~~~~~~~~~~~~~~~~~~~
        
        * Refactor `patternSingleton <https://pypi.org/project/patternSingleton/>`__ to `pattern_singleton <https://pypi.org/project/pattern_singleton/>`__
        
Keywords: pattern_singleton
Platform: UNKNOWN
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Requires-Python: >=3.5
Description-Content-Type: text/x-rst
