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
Metadata
Release files for money.py 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| money.py-1.0.2.tar.gz | 8.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| money.py-1.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 29.7 kB
Release files / money.py-1.0.2.tar.gz
| Download URL | money.py-1.0.2.tar.gz |
|---|---|
| Size | 8.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7715acc3b80c4043bacf3a89208a9099818e6c61b7c9689b6462dce8b365fda6
|
|
BLAKE2b-256 checksum How to use checksums |
58c52c68615abf4f2d07be99871a3816bc4a16fcff22a41cd90e987b1e997f67
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.6.10
|
Release files / money.py-1.0.2-py3-none-any.whl
| Download URL | money.py-1.0.2-py3-none-any.whl |
|---|---|
| Size | 20.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
705082e78439c3f80efd99c7c6aecbbc4051ca2d38b0e33a8594010f208af904
|
|
BLAKE2b-256 checksum How to use checksums |
0ead36083d074a4cef3e0e4d628059b714f451b0e2e4ad1245f94aa6a57a5146
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.6.10
|