Skip to main content

cbr-dws-client

build-status-image codeql-image pypi-version pypi-downloads

Клиент для работы с сервисом получения ежедневных данных ЦБ.

Подробную документацию по сервису см. тут

Пример

from cbr_dws_client import CbrDwsClient, AsyncCbrDwsClient
from datetime import datetime
from cbr_dws_client.constants import CodeMetalEnum

cbr_dws_client = CbrDwsClient()
async_cbr_dws_client = AsyncCbrDwsClient()

# Получить список текущих курсов.
cbr_dws_client.get_currencies_on_date(datetime.now())
await async_cbr_dws_client.get_currencies_on_date(datetime.now())

# Получить список курс доллара.
cbr_dws_client.get_currencies_on_date(datetime.now(), "USD")
await async_cbr_dws_client.get_currencies_on_date(datetime.now(), "USD")

# Получить текущую динамику курса доллара за 15 дней.
cbr_dws_client.get_currencies_dynamic(datetime.now() - timedelta(days=15), datetime.now(), "USD")
await async_cbr_dws_client.get_currencies_dynamic(datetime.now() - timedelta(days=15), datetime.now(), "USD")

# Получить текущую динамику ключевой ставки за 15 дней.
cbr_dws_client.get_key_rate(datetime.now() - timedelta(days=15), datetime.now())
await async_cbr_dws_client.get_key_rate(datetime.now() - timedelta(days=15), datetime.now())

# Получить текущую динамику курса золота за 15 дней.
cbr_dws_client.get_drag_met_dynamic(datetime.now() - timedelta(days=15), datetime.now(), CodeMetalEnum.GOLD.value)
await async_cbr_dws_client.get_drag_met_dynamic(datetime.now() - timedelta(days=15), datetime.now(), CodeMetalEnum.GOLD.value)

Требования

  • python >=3.11, <4.0
  • zeep >=4.2.1
  • httpx <0.28

Установка

pip install cbr-dws-client

Сотрудничество

Перед тем как вносить вклад в проект, ознакомьтесь с нашими правилами.

Metadata

Release files for cbr-dws-client 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cbr-dws-client 0.0.5
File Size Uploaded Provenance Actions
cbr_dws_client-0.0.5.tar.gz 8.6 kB Without provenance Details for cbr_dws_client-0.0.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cbr-dws-client 0.0.5
File Interpreter ABI Platform Actions
cbr_dws_client-0.0.5-py3-none-any.whl Python 3 none any Details for cbr_dws_client-0.0.5-py3-none-any.whl

Total release size: 18.2 kB

Release files / cbr_dws_client-0.0.5.tar.gz

Download URL cbr_dws_client-0.0.5.tar.gz
Size 8.6 kB
Tags Source
SHA-256 checksum
How to use checksums
8d110b447501e3bff713d7ce23b7976183d328d4f27566d495fe04bf89067893
BLAKE2b-256 checksum
How to use checksums
71cf591a041f3d7fad6a2af84fe3f8cf7d1914523b09a9ce418f10282ef2fad0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.3 CPython/3.12.3 Linux/6.11.0-1015-azure

Release files / cbr_dws_client-0.0.5-py3-none-any.whl

Download URL cbr_dws_client-0.0.5-py3-none-any.whl
Size 9.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a12dafe4a2af55f0e9612851e97acb0bd115e87c2c1ccd524fc2bacba2418d7c
BLAKE2b-256 checksum
How to use checksums
f9c69ff019da5ad3cb504659365a9a01f4d0927740f4448ac1dcd74f3aeaa4e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.3 CPython/3.12.3 Linux/6.11.0-1015-azure

Security for cbr-dws-client 0.0.5

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page