semvec/pypi-packages huggingface dataset:
python-guzi 0.1.3
A light library to use Guzi in python application
Requires Python: >=3.6

# python-guzi
A library to use Guzi in Python applications

## Run tests

```python
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 :
```python
from datetime import date
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(1, 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)
```

Class Company contains every Guzi relative information a company would need :
    - guza_wallet

A Company has also an engaged strategy. An engaged User can be a paid employee or some kind of shareholder. When a User is engaged to a Company for a number of times (for example User1 engaged 4 times), it means that 4 of the Guzis the Company will get paid with will go to this User.

An engaged User is different of a founder User : founder User only get paid when all engaged Users have been fully paid. Founder only get the profit.

For example, an employee in the company would be engaged and would get his or her salary every month. He or she could aslo be part of the founders and then, if the company earns more than necessary to pay salaries, the bonus (the profit) would go to this salaried too.

Usage:
```python
from datetime import date
from guzi.models import User, Company, DefaultEngagedStrategy

# Create users
user1 = User("unique_id1", birthdate=date(1989, 11, 28))
user2 = User("unique_id2", birthdate=date(1998, 9, 5))

# Create company
founders = [user1, user2]
company = Company("unique_id", founders)

# Create users Guzas
for i in range(1, 10):
    user1.create_daily_guzis(date(2020, 4, i))
    user2.create_daily_guzis(date(2020, 4, i))

# Users can give Guzas to the company
user1.give_guzas_to(company, 3)
user2.give_guzas_to(company, 9)

# Then company can spend those Guzas, for example to buy something to user1
# who could sell something usefull for the company
company.spend_to(user1, 6)
user1.check_balance()
assert(len(user1.total_accumulated) == 6-3)
```
pytinyexr 0.9.1
Python bindings for TinyEXR(OpenEXR loader/saver)

# PyEXR

[![Build Status](https://travis-ci.org/syoyo/PyEXR.svg?branch=master)](https://travis-ci.org/syoyo/PyEXR)

Loading OpenEXR (.exr) images using Python.

It is basically a Python binding for tinyexr. Use CMake to build the module (uses pybind11). Installation script is not there, you can simply copy the resulting python module files. Supports loading functionality, saving can be easily added (pull requests welcome!).

# Usage
```python
from pytinyexr import PyEXRImage

# Load an EXR image (tinyexr backend)
img = PyEXRImage('2by2.exr')

# Print basic details
print(img)

# Pixel values access
r = img.getPixel(x,y,0)
g = img.getPixel(x,y,1)
b = img.getPixel(x,y,2)
a = img.getPixel(x,y,3)

# Numpy:
m = np.array(img, copy = False)
# or
rgb = np.reshape(np.array(rgb_img, copy = False), (rgb_img.height, rgb_img.width, 4))
# a matrix of (height x width x channels)

# Display
from PIL import Image
Image.fromarray(np.clip(np.uint8(rgb*255.0), 0, 255)).show()
```

# PyPI package

PyPI package is registered as pytinyexr: https://pypi.org/project/pytinyexr/

```
$ pip install pytinyexr
```

### For developer

For each release, upload source distribution from local.

```
$ rm -rf dist && python setup.py sdist
$ twine upload dist/*.tar.gz
```



## Notice.

Python2.7 wheel is not provided.