Skip to main content

Money package for Python

Project description

moneymoney

Money package for Python

PyPI GitHub release (latest by date) PyPI - Python Version PyPi downloads

Installation

pip install moneymoney

Usage

from moneymoney.currency_codes import CurrencyCodes
from moneymoney.money import Money

# using a string as currency code
quantity = Money(amount=1000, currency_code="EUR")

# using currency codes from this package
quantity_two = Money(amount=1000, currency_code=CurrencyCodes.EUR)

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

GPLv3

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

moneymoney-0.2.0.tar.gz (15.4 kB view hashes)

Uploaded Source

Built Distribution

moneymoney-0.2.0-py3-none-any.whl (15.4 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