Skip to main content
Build Status Latest PyPI version https://readthedocs.org/projects/py-moneyed/badge/?version=latest

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 1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for py-moneyed 1.2
File Size Uploaded Provenance Actions
py-moneyed-1.2.tar.gz 26.2 kB Without provenance Details for py-moneyed-1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for py-moneyed 1.2
File Interpreter ABI Platform Actions
py_moneyed-1.2-py2.py3-none-any.whl Python 2, Python 3 none any Details for py_moneyed-1.2-py2.py3-none-any.whl

Total release size: 44.0 kB

Release files / py-moneyed-1.2.tar.gz

Download URL py-moneyed-1.2.tar.gz
Size 26.2 kB
Tags Source
SHA-256 checksum
How to use checksums
d745a52819604f42b3666f9b2504b71c27c1645d6d5027d95ec5ed1f28ca86e3
BLAKE2b-256 checksum
How to use checksums
56ef7703715012783e0bf9eb410840ddd54b448eea023ac72322eeeb8737a865
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

Release files / py_moneyed-1.2-py2.py3-none-any.whl

Download URL py_moneyed-1.2-py2.py3-none-any.whl
Size 17.8 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
c6131c7b7c1f8503552afe44d15c343ea50282d1d9e6fa8b3f1bd2affc1dae1e
BLAKE2b-256 checksum
How to use checksums
dc98e8c9ac0ef16ffc802500668aea7ba22835ba4e3495306b7caffa600eabdd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

Security for py-moneyed 1.2

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page