Registry / payments / money
library1.3.0pypypiunverified

money is a Python class for representing and manipulating monetary amounts with precision. It supports currency-aware arithmetic, formatting, and exchange rates. Current version 1.3.0. Release cadence is low; no recent updates.

pip install money
INSTALL
IMPORT
SIG · MONEY
M
money
paymentspythonv1.3.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Money
✓ import money
✗ from money import Money

Create a Money object with amount string and ISO currency code.

from money import Money m = Money(amount='100.50', currency='USD') print(m) print(m.amount) # Decimal('100.50') print(m.currency) # 'USD'
Debug
Known issues
gotchaAmount must be passed as a string to avoid floating-point precision issues.
fix
Always use a string for the amount: Money(amount='19.99', currency='USD')
affects: all
gotchaMoney objects are immutable; arithmetic returns new objects.
fix
Assign result: new_m = m + Money(amount='10', currency='USD')
affects: all
breakingCurrency provider interface changed in 1.0.0; custom providers must implement new methods.
fix
See documentation for updated provider interface.
affects: >=1.0.0
Upgrade
Version history
1.3.0latest on PyPI · released Apr 17, 2016
Audit
Dependencies

No dependency data recorded yet.

Agent activity
31 hits · last 30 days
node
30
Resources
money — pip install money · libregistry