A light library to use Guzi in python application
Project description
python-guzi
A library to use Guzi in Python applications
Run tests
python -m unittest
Usage
Class User contains every Guzi relative information a user would need : - guzi wallet - guza waller - total accumulated - balance
For now, a Guzi (and a Guza) is just a string, an identifier defining what it is. So it has no dedicated class. Maybe it will, but for now, nope.
Example of use :
from guzi.models import User
# Create users
user1 = User("unique_id1", birthdate=date(1989, 11, 28))
user2 = User("unique_id2", birthdate=date(1998, 9, 5))
# create their Guzis (it's like having a new day)
for i in range(10):
user1.create_daily_guzis(date(2020, 4, i))
# Then make them spend between each other
user1.spend_to(user2, 3)
user1.spend_to(user2, 2)
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
python-guzi-0.0.4.tar.gz
(4.2 kB
view hashes)
Built Distribution
Close
Hashes for python_guzi-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf7c0021cc3388df07f9a7dea9d12bd849ce44e0ee33e07b323944f3919fa376 |
|
MD5 | 78a61508a46fdecbf9880569cbb2d2c1 |
|
BLAKE2b-256 | 27160ca1b44cfde0295c356ea7a40fe4f9bc65b523b383317d42270c24fcabf2 |