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.1.tar.gz
(1.9 kB
view hashes)
Built Distribution
Close
Hashes for getinstance-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e18a42fb11aa2e683ff171c0b7e64bef418396beea776980f6f7cb4c86f62038 |
|
MD5 | a67cd3c49ddb3e599b03c6e493201892 |
|
BLAKE2b-256 | 892383852697f15abb2da6a48baff4286fc4ca97fb40d4b9012ce2931c9478aa |