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.3
- replace shelve with requests-cache
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyUSDforex-0.1.3.1.tar.gz.
File metadata
- Download URL: pyUSDforex-0.1.3.1.tar.gz
- Upload date:
- Size: 2.0 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fdf2b22641889acb84fdc10da4fe3b2410785de138c90f0c81ffb3651e8121d1
|
|
| MD5 |
6291758141a3d78874f5d9f30daee000
|
|
| BLAKE2b-256 |
503727502a5eaf377b0acd956bb0d7ff52a8bd4f2af417437053a4d573547226
|
File details
Details for the file pyUSDforex-0.1.3.1-py3-none-any.whl.
File metadata
- Download URL: pyUSDforex-0.1.3.1-py3-none-any.whl
- Upload date:
- Size: 3.1 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dbffeec3db3ee8c3221aa2f1ca3a77bb4da2fc9c512cac4b891786c67e63dd30
|
|
| MD5 |
22e8dadacb81127c2fa2c67b105ceefb
|
|
| BLAKE2b-256 |
fdc3bdf5fe98a953ec4d5a94bf1556ee4dea5c56a68b7ead292a039279452e6f
|