Skip to main content

Get current exchange rate.

It parses current exchange rate from these services:

  • Yahoo finance

  • fixer.io

  • European Central Bank

Installation

Using pip to install it:

$ pip install exchange

Usage

The only method you would use is rate:

>>> import exchange
>>> exchange.rate('USD', 'CNY')
Decimal('6.070')

License

This project is licensed with BSD. See LICENSE for more detail.

Metadata

Release files for exchange 0.3

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

Source distribution (sdist)

Source distribution for exchange 0.3
File Size Uploaded Provenance Actions
exchange-0.3.tar.gz 3.4 kB Without provenance Details for exchange-0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for exchange 0.3
File Interpreter ABI Platform Actions
exchange-0.3-py2.py3-none-any.whl Python 3, Python 2 none any Details for exchange-0.3-py2.py3-none-any.whl

Total release size: 7.2 kB

Release files / exchange-0.3.tar.gz

Download URL exchange-0.3.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
bef812c47eaceecb9dbc2f2c780690ecb7cb2e31c743aebc89f9bba64084cb77
BLAKE2b-256 checksum
How to use checksums
20bff55ff7a6f40510a62e87be8efb77a9d931cb7f1e85d7f080b2baaf20c0d8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / exchange-0.3-py2.py3-none-any.whl

Download URL exchange-0.3-py2.py3-none-any.whl
Size 3.8 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
dc61ebeb11b8a236e1e0b014a71f432891d6099c95495b5d862c926f99fa8f55
BLAKE2b-256 checksum
How to use checksums
42c3daa284da7f6fbd0e6aee8e6d646c67664574472b463542b95d7954a6da47
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for exchange 0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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