getinstance
Project description
Installation
pip install getinstance
Usage
from getinstance import InstanceManager
class Country:
instances = InstanceManager()
def __init__(self, name):
self.name = name
au = Country('Australia')
ru = Country('Russia')
print(Country.instances.all())
print(Country.instances.get(name='Australia'))
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
getinstance-0.2.tar.gz
(2.0 kB
view hashes)
Built Distribution
Close
Hashes for getinstance-0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 341e4871e2ea6ed31192f882c725064d6ea41c17e61702bc1891e78df9037956 |
|
MD5 | 3093321092b7cb19aa29761a41bce04d |
|
BLAKE2b-256 | 7042d033b62434787238766bbaef4208400bebeb4f384710b3f5c1a384ad8594 |