Metadata-Version: 1.1
Name: getinstance
Version: 0.4
Summary: getinstance
Home-page: https://github.com/Fak3/getinstance
Author: Roman Evstifeev
Author-email: someuniquename@gmail.com
License: MIT
Description: Installation
        ------------
        
        ::
        
           pip install getinstance
        
        Usage
        -----
        
        .. code:: python
        
           from getinstance import InstanceManager
        
           class Country:
               instances = InstanceManager()
               
               def __init__(self, name):
                   self.name = name
                   
               def hello(self, username):
                   print(f'hello, {username} from {self.name}')
                       
           au = Country('Australia')
           ru = Country('Russia')
        
           print(list(Country.instances.all()))
           print(Country.instances.get(name='Australia')) 
           Country.instances.filter(name='Russia').hello(username='Alice')
        
        
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: OS Independent
Classifier: Operating System :: POSIX :: Linux
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Operating System :: Android
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Software Development
Classifier: Topic :: Utilities
