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 details)
Built Distribution
money.py-1.0.2-py3-none-any.whl
(20.9 kB
view details)
File details
Details for the file money.py-1.0.2.tar.gz
.
File metadata
- Download URL: money.py-1.0.2.tar.gz
- Upload date:
- Size: 8.8 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
7715acc3b80c4043bacf3a89208a9099818e6c61b7c9689b6462dce8b365fda6
|
|
MD5 |
534136d0959cdb71b9e7e59af0d7623a
|
|
BLAKE2b-256 |
58c52c68615abf4f2d07be99871a3816bc4a16fcff22a41cd90e987b1e997f67
|
File details
Details for the file money.py-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: money.py-1.0.2-py3-none-any.whl
- Upload date:
- Size: 20.9 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
705082e78439c3f80efd99c7c6aecbbc4051ca2d38b0e33a8594010f208af904
|
|
MD5 |
2b1c86d57d21658d11ad8910e8bac119
|
|
BLAKE2b-256 |
0ead36083d074a4cef3e0e4d628059b714f451b0e2e4ad1245f94aa6a57a5146
|