getinstance 0.4

Creator: bradpython12

Last updated:

0 purchases

getinstance 0.4 Image
getinstance 0.4 Images
Add to Cart

Description:

getinstance 0.4

Installation
pip install getinstance


Usage
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')

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.