skip to navigation
skip to content

Not Logged In

django-exchange 0.6.0

currency, exchange rates and conversions support for django

Latest Version: 0.7.1

Currency, exchange rate and conversions support for django projects.


django-exchange is available on pypi repositories so youre free to use pip or easy_install:

$ pip install django-exchange

Or you might want to install from source:

$ wget
$ unzip
$ cd django-exchange-xxx
$ python install

Add exchange into your INSTALLED_APPS settings of your django project:


Don't forget to sync your db to create corresponding database tables:

$ python syncdb

Populating Data

django-exchange supports populating currency and exchange rates using a service provider automatically. Currently it has built in support for service. It is only a matter of supplying an api key obtained from as django settings using the key OPENEXCHANGERATES_API_KEY:


Now you can populate you currency and exchange rates magically by typing:

$ python update_exchange_rates

If you want to use you own service provider, you should consider implementing exchange.adapters.BaseAdapter class and pass you implementation class path as an argument to update_exchange_rates command:

$ python update_exchange_rates -c myproj.providers.MyProvider


Currency conversions is dead easy. There are auxilaray methods helps you calculate conversions using populated exchange rates under exchange.conversions module.

Take a look at the example below:

>>> from exchange.conversion import Price, convert
>>> my_price = Price(50, 'USD')
>>> my_price.convert('YEN')
<Price (4678.50 YEN)>


Coming soon...


  • Convenient template tags
  • Django price field implementation supporting currency conversions
  • Easier api with convenient refaactorings
  • A few more builtin exchange rate provider
File Type Py Version Uploaded on Size
django-exchange-0.6.0.tar.gz (md5, pgp) Source 2013-12-09 11KB
django_exchange-0.6.0-py2.py3-none-any.whl (md5, pgp) Python Wheel 2.7 2013-12-09 13KB
  • Downloads (All Versions):
  • 49 downloads in the last day
  • 421 downloads in the last week
  • 1578 downloads in the last month