Skip to main content

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 :

# 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.3.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

python_guzi-0.0.3-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file python-guzi-0.0.3.tar.gz.

File metadata

  • Download URL: python-guzi-0.0.3.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.6

File hashes

Hashes for python-guzi-0.0.3.tar.gz
Algorithm Hash digest
SHA256 5134bfcc90e471122674b21ee3a7baf18dbac12370182ec3f94e7fb818125464
MD5 abc9ae0b0938369a3c07299277550c3a
BLAKE2b-256 a0b309e2df720d6a42cd984ae9963579a5d54ba538f042eff4213ec526fb325c

See more details on using hashes here.

File details

Details for the file python_guzi-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: python_guzi-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.6

File hashes

Hashes for python_guzi-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7f8b03d61d7cf79f095d5d4f073814841f66ae32d587e437f47e7ad1e250e56a
MD5 8cd568c50534214a1a1fd627893f215d
BLAKE2b-256 b2f043e1446d0228ed63cb7d87b9adea50a3ecd89189f70bf358b29e65d7dc45

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page