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

guzi-0.0.4.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.

guzi-0.0.4-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file guzi-0.0.4.tar.gz.

File metadata

  • Download URL: guzi-0.0.4.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 guzi-0.0.4.tar.gz
Algorithm Hash digest
SHA256 24dfcdb6075815056f58df4526f07d30b15c418f3352ac4dbafb9a69a34890f0
MD5 dae01246ac14bbdd46605df1f81834a0
BLAKE2b-256 3619f3b53c57c68684fea11fb321673821acf7c7d357ca59c85937befc33c019

See more details on using hashes here.

File details

Details for the file guzi-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: guzi-0.0.4-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 guzi-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 e0a060db685ca75a01ad5d5fc7f18b2a3a5a3d10324ceeb3f2165c6d17ee08e1
MD5 405d7289bd642f672f28c324d42b8419
BLAKE2b-256 505e9567ee854012caeb9463d4c79793c224d33e33c28039d2872f94a7067ead

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