Skip to main content

money.py is a library to handle money.

Project description

money.py

PyPI version Build Status

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for money.py, version 1.0.2
Filename, size File type Python version Upload date Hashes
Filename, size money.py-1.0.2-py3-none-any.whl (20.9 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size money.py-1.0.2.tar.gz (8.8 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page