Skip to main content

Introduction

python-money provides carefully designed basic Python primitives for working with money and currencies.

The primary objectives of this module is to aid in the development of financial applications by increasing testability and reusability, reducing code duplication and reducing the risk of defects occurring in the code.

The module defines two basic Python classes – a Currency class and a Money class. It also pre-defines all the world’s currencies, according to the ISO 4217 standard. The classes define some basic operations for working with money, overriding Python’s addition, substraction, multiplication, etc. in order to account for working with money in different currencies. They also define currency-aware comparison operators. To avoid floating point precision errors in monetary calculations, the module uses Python’s Decimal type exclusively.

The design of the module is based on the Money enterprise design pattern, as described in Martin Fowler’s “Patterns of Enterprise Application Architecture”.

This project also contains Django helper classes for easy integration with python-money.

Installation

python setup.py install

Project Site

http://code.google.com/p/python-money/

This project is sponsored by A115 Ltd.

Metadata

Release files for python-money 0.5

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

Source distribution (sdist)

Source distribution for python-money 0.5
File Size Uploaded
python-money-0.5.tar.gz 14.9 kB Details

Release files / python-money-0.5.tar.gz

Download URL python-money-0.5.tar.gz
Size 14.9 kB
Tags Source
SHA-256 checksum
How to use checksums
d98114d1895534fae37f1d4f44df25828c25e6c5a9298e1ec343cbcc6290f4e9
BLAKE2b-256 checksum
How to use checksums
8cbbb24ed78d62b2463d46c182698c64636424c0761f9a84008572983b06f5d4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.5 This release

1 release file

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