Skip to main content

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

Release files for pyUSDforex 0.1.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyUSDforex 0.1.3.1
File Size Uploaded
pyUSDforex-0.1.3.1.tar.gz 2.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyUSDforex 0.1.3.1
File Interpreter ABI Platform
pyUSDforex-0.1.3.1-py3-none-any.whl Python 3 none any Details

Total release size: 5.0 kB

Release files / pyUSDforex-0.1.3.1.tar.gz

Download URL pyUSDforex-0.1.3.1.tar.gz
Size 2.0 kB
Tags Source
SHA-256 checksum
How to use checksums
fdf2b22641889acb84fdc10da4fe3b2410785de138c90f0c81ffb3651e8121d1
BLAKE2b-256 checksum
How to use checksums
503727502a5eaf377b0acd956bb0d7ff52a8bd4f2af417437053a4d573547226
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / pyUSDforex-0.1.3.1-py3-none-any.whl

Download URL pyUSDforex-0.1.3.1-py3-none-any.whl
Size 3.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dbffeec3db3ee8c3221aa2f1ca3a77bb4da2fc9c512cac4b891786c67e63dd30
BLAKE2b-256 checksum
How to use checksums
fdc3bdf5fe98a953ec4d5a94bf1556ee4dea5c56a68b7ead292a039279452e6f
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.1.3.1 This release

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page