Skip to main content

Converts foreign fiat currencies to USD by getting and caching hourly exchanges rates from

Project description

PyUSDforex - Fiat to USD

Project Description

PyUSDforex is a python package to convert foreign currencies into US dollars. It uses the free API key from to get over 200 currencies. PyUSDforex allows you to perform as many currency conversions as you wish by caching the hourly exchange rates from in a python shelve.


install from

pip install pyUSDforex


import pyUSDforex

pyUSDforex.convert(100, 'EUR', 'Your APP_ID')

Get your app_id from


We welcome your feedback and support, raise github ticket if you want to report a bug. Need new features? Contact us on github



  • replace shelve with requests-cache


  • raise an exception when the currency code cannot be found


  • make threading safe with lock object


  • Init release

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyUSDforex- (2.0 kB view hashes)

Uploaded Source

Built Distribution

pyUSDforex- (3.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page