cbfx
Get current foreign exchange rates (local currency → USD) by parsing central bank websites.
Installation
pip install -e .
Usage
from cbfx import get_rate, supported
# By country code
rate = get_rate(country="VN")
# By currency code
rate = get_rate(currency="THB")
# See all supported countries
print(supported()) # {'PH': 'PHP', 'TH': 'THB', 'VN': 'VND'}
Supported Countries
| Country | Code | Currency | Source |
|---|---|---|---|
| Philippines | PH | PHP | Bangko Sentral ng Pilipinas |
| Thailand | TH | THB | Bank of Thailand |
| Vietnam | VN | VND | State Bank of Vietnam |
License
MIT
Metadata
Release files for cbfx 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cbfx-0.1.0.tar.gz | 17.8 kB | Without provenance | Details for cbfx-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cbfx-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for cbfx-0.1.0-py3-none-any.whl |
Total release size: 36.2 kB
Release files / cbfx-0.1.0.tar.gz
| Download URL | cbfx-0.1.0.tar.gz |
|---|---|
| Size | 17.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5fd4b91766197c797c36db73426967500fd3be2a5f055d11a4b38a17b84ad0af
|
|
BLAKE2b-256 checksum How to use checksums |
fd8d67e5538548822f49dbdc552a8a5cd15e640db522e6f829a275f77bb31cd3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / cbfx-0.1.0-py3-none-any.whl
| Download URL | cbfx-0.1.0-py3-none-any.whl |
|---|---|
| Size | 18.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e8305a333a1dab65b042293167f684199a44b5f4dee5e24d978fc05011657974
|
|
BLAKE2b-256 checksum How to use checksums |
d424c649407c96251cd23a4c1dc630bef6e7e8dc1e939de93f23c2da88b8cf90
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Security for cbfx 0.1.0
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.