Unofficial Python package to retrieve official exchange rates from the Central Bank of Venezuela (BCV) website.
Project description
BCV_EXCHANGE
Unofficial Python package to retrieve official exchange rates from the Central Bank of Venezuela (BCV) website.
Features
- 📊 Real-time exchange rate data
- 🌐 Supports multiple currencies: USD, EUR, CNY, TRY, RUB
- 📅 Includes official update timestamp
- 🔄 Structured JSON output
- ⚠️ Automatic structure validation
Installation
pip install bcv_exchange
Usage
from bcv_exchange import get_exchange_rate
try:
exchange_data = get_exchange_rate()
print(f"Source: {exchange_data['source']}")
print(f"Last update: {exchange_data['date_of_change']}")
print("Exchange Rates:")
for currency, rate in exchange_data['exchange_rates'].items():
print(f"{currency}: {rate:.2f} Bs")
except Exception as e:
print(f"Error: {str(e)}")
Output Example
Fecha de actualización: 2025-03-10 00:00:00-04:00
Tasas de cambio:
EUR: 70.91 Bs
CNY: 9.02 Bs
TRY: 1.79 Bs
RUB: 0.73 Bs
USD: 65.27 Bs
License
This project is licensed under the MIT License - see the LICENSE file for details
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
bcv_exchange-1.1.0.tar.gz
(5.1 kB
view details)
File details
Details for the file bcv_exchange-1.1.0.tar.gz.
File metadata
- Download URL: bcv_exchange-1.1.0.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6f19d92beb9063a844f124d741b531123eb8c3e78ed98f6f168a4b5f70078a54
|
|
| MD5 |
047176aeb4e0bf79e7e25efd54e32ec3
|
|
| BLAKE2b-256 |
627d790ff105114d76914bce3ffb8194bdd3ca616f0dbeef984851315d1fb633
|