Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cbrf_exchange_rates-0.0.1.tar.gz (4.0 kB view details)

Uploaded Source

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

Hashes for cbrf_exchange_rates-0.0.1.tar.gz
Algorithm Hash digest
SHA256 efc8942e354efdab8a98b2f4e3068596366f8be6adf90518942143bf5dcc4375
MD5 fde828e14ba9da93ee63caa5da0b33a1
BLAKE2b-256 52f2689541efb2a9907b3b64459b2b47cfd3cfbd207ed1ecf61acd94d75164dc

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page