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.0.0.tar.gz
(4.7 kB
view details)
File details
Details for the file bcv_exchange-1.0.0.tar.gz.
File metadata
- Download URL: bcv_exchange-1.0.0.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3ff67101083899ec1352f430d9969bdf4e37ebac6a5a7adfdfd17a1d0e0bd111
|
|
| MD5 |
26fe957dca6b056ba179f18223621cc9
|
|
| BLAKE2b-256 |
bb51ff0c3e60a9b483066f1f58f4c96a702e87c3418ebcf4e7148e149945ca52
|