Skip to main content

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

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 openexchangerates.org to get over 200 currencies. PyUSDforex allows you to perform as many currency conversions as you wish by caching the hourly exchange rates from openexchange.org in a python shelve.

Installation

install from https://pypi.org/project/pyUSDforex/

pip install pyUSDforex

Usage

import pyUSDforex

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

Get your app_id from https://openexchangerates.org/signup/free

Notes

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

Changelog

1.2

  • raise an exception when the currency code cannot be found

1.1

  • make threading safe with lock object

1.0

  • 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-0.1.2.tar.gz (2.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyUSDforex-0.1.2-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file pyUSDforex-0.1.2.tar.gz.

File metadata

  • Download URL: pyUSDforex-0.1.2.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for pyUSDforex-0.1.2.tar.gz
Algorithm Hash digest
SHA256 e71d46c5822d7417888960030d01fc1c41b40ec1ea1fb209fcb8d94e0449bbc0
MD5 0e08201636767262b8f07e879c371afc
BLAKE2b-256 d89e981632b8f380c861cbbb1043843e0d205885da8b76b87cf4983bbd1c8aa7

See more details on using hashes here.

File details

Details for the file pyUSDforex-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: pyUSDforex-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for pyUSDforex-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f09e33b33420113f638b232fcee4762ed93e00e8cb3f2b043842776968b2120d
MD5 b982ee3d9a26a33e3e859517a69aea56
BLAKE2b-256 57e8495d19e2e753615c11e6ea850e6286e4b69c06996dcda6430ed8c76f016e

See more details on using hashes here.

Supported by

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