Client for The Central Bank of the Russian Federation APIs
Project description
Python client for CBRF Rates API
cbrf_exchange_rates - это модуль для скачивания курсов валют с сайта cbr.ru (Центральный банк Российской Федерации)
Модуль использует открытое API.
Лицензия MIT.
Зависимости
- python==3.12
- requests==2.32.3
Установка
pip install cbrf_exchange_rates
Использование
from cbrf_exchange_rates.service import CbrfRatesClient
cbrf_client = CbrfRatesClient()
cbrf_client.get_rates()
Результат:
[
{
'code': 'AUD',
'id': '036',
'name': 'Австралийский доллар',
'rate': Decimal('58.9448')
},
{
'code': 'AZN',
'id': '944',
'name': 'Азербайджанский манат',
'rate': Decimal('52.2978')
}
]
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
File details
Details for the file cbrf_exchange_rates-0.0.1.tar.gz
.
File metadata
- Download URL: cbrf_exchange_rates-0.0.1.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | efc8942e354efdab8a98b2f4e3068596366f8be6adf90518942143bf5dcc4375 |
|
MD5 | fde828e14ba9da93ee63caa5da0b33a1 |
|
BLAKE2b-256 | 52f2689541efb2a9907b3b64459b2b47cfd3cfbd207ed1ecf61acd94d75164dc |