Wiki

Clone wiki

Currency / Home

Currency - v0.1


Currency Conversion, using openexangerates.org json API.

Platform


  • Multiplatform

Requirements


  • Python 2.7

Install


easy_install pip
pip install currency

or

hg clone https://alquimista@bitbucket.org/alquimista/currency
cd currency
python setup.py install

Test

python setup.py test

Usage


>>> import currency
>>> exange = currency.ExangeRates()
>>> exange.base
u'USD'
>>> exange.convert(1, 'USD', 'MXN')
12.66835
>>> import datetime
>>> historical = currency.ExangeRates(datetime.date(199, 1, 1))
>>> historical.convert(1, 'USD', 'MXN')
9.90001

Source


https://bitbucket.org/alquimista/currency

Contact


Gmai/Gtalk: rogeaa.cyc@gmail.com
twitter: @elalquimista
Skype: robertogea

Updated