Overview
The need to represent instances of money frequently arises in software development, particularly any financial/economics software. To address that need, the py-moneyed package provides the classes of Money and Currency, at a level more useful than just using Python’s Decimal class, or ($DEITY forbid) the float primitive. The package is meant to be stand-alone and used directly, or be subclassed further. py-moneyed is BSD-licensed.
Quick start
To install:
pip install py-moneyed
Use:
from moneyed import Money, USD
five_dollars = Money(5, USD)
You then use Money objects as if they were numbers, and they behave sensibly. See docs for more information (or the docs/ folder).
History
Some of the py-moneyed code was first derived from python-money available via this URL: http://code.google.com/p/python-money/ Due to inactivity, it was forked by @limist in 2010 and later moved to the py-moneyed organization.
Metadata
Release files for py-moneyed 3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| py-moneyed-3.0.tar.gz | 20.4 kB | Without provenance | Details for py-moneyed-3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| py_moneyed-3.0-py3-none-any.whl | Python 3 | none | any | Details for py_moneyed-3.0-py3-none-any.whl |
Total release size: 31.7 kB
Release files / py-moneyed-3.0.tar.gz
| Download URL | py-moneyed-3.0.tar.gz |
|---|---|
| Size | 20.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4906f0f02cf2b91edba2e156f2d4e9a78f224059ab8c8fa2ff26230c75d894e8
|
|
BLAKE2b-256 checksum How to use checksums |
2cd9cb6f113d2b7cf930bb3963d2b84ee245c20f93f9afc2e41adece58d324ae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.15
|
Release files / py_moneyed-3.0-py3-none-any.whl
| Download URL | py_moneyed-3.0-py3-none-any.whl |
|---|---|
| Size | 11.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9583a14f99c05b46196193d8185206e9b73c8439fc8a5eee9cfc7e733676d9bb
|
|
BLAKE2b-256 checksum How to use checksums |
be2b2d87f12edc70f0d8c85148c51b57a4b8cf89e4d8ad291935a47ed1b7c52e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.15
|
Security for py-moneyed 3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.