money.py is a library to handle money.
Project description
money.py
money.py is a library to handle money
Python 3.6+ only.
https://en.wikipedia.org/wiki/ISO_4217
Documentation
Will make it ASAP.
Installation
pip3 install money.py
Testing
-
pip install pytest pytest-cov pytest-xdist
-
pytest --cov=moneypy
Example
from moneypy import Money, EUR_CURRENCY
a = Money(EUR_CURRENCY)
b = Money(EUR_CURRENCY)
a.add(2, 30) # 2.30
b.add(4, 4) # 4.4
a += b
print(a) # 6.7
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
money.py-1.0.2.tar.gz
(8.8 kB
view hashes)
Built Distribution
money.py-1.0.2-py3-none-any.whl
(20.9 kB
view hashes)