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.

Source Distribution

money.py-1.0.2.tar.gz (8.8 kB view hashes)

Uploaded Source

Built Distribution

money.py-1.0.2-py3-none-any.whl (20.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page