python-money

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

python-money Ranking & Summary

Advertisement

  • Rating:
  • License:
  • GPL
  • Price:
  • FREE
  • Publisher Name:
  • Jordan Dimov
  • Publisher web site:
  • http://code.google.com/p/python-money/

python-money Tags


python-money Description

python-money provides carefully designed basic Python primitives for working with money and currencies. 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.Use this command to anonymously check out the latest project source code:# Non-members may check out a read-only working copy anonymously over HTTP.svn checkout http://python-money.googlecode.com/svn/trunk/ python-money-read-only


python-money Related Software