Skip to content
/ dollars Public

Converts everything to dollars using up to date rates

License

Notifications You must be signed in to change notification settings

aerupt/dollars

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Lauri Applesils
Lauri Apple
and
May 1, 2017
8fd1771 · May 1, 2017

History

8 Commits
Feb 21, 2017
Feb 21, 2017
Feb 21, 2017
May 1, 2017
Feb 21, 2017
Feb 21, 2017

Repository files navigation

$$$

Use this Python library to convert amounts of nearly any currency into dollars.

$$$ uses the Open Exchange Rates currency data API as a backend. It caches the rates for you, and pulls in the new values hourly so that your data will never be older than < 2 hours. For that, you will be able to use the free plan.

Here's how to use it:

$ pip install dollars
$ export OXR_APP_ID=...  # Your freely achieved app id
$ ipython

In [1]: from dollars import dollar

In [2]: dollar('EUR', 5)
Out[2]: 5.271147845154761

Stop worrying, and start converting!