Tool for easy working with https://portal5.cbr.ru API
Project description
cbr-client
Клиент для работы с api ЦБ РФ
Описание АПИ - https://cbr.ru/lk_uio/guide/rest_api/
Установка
pip install cbr-client
Зависимости
Использование
from cbr_client import Client
client = Client(login='test', password='test', user_agent='test app')
files = [
('report.zip.enc', 'encrypted report content'),
('report.zip.enc.1.sig', 'operator signature'),
('report.zip.enc.2.sig', 'client signature')
]
# отправка отчета на портал ЦБ
msg = client.create_message(files, '1-ПИ')
client.upload(msg)
client.finalize_message(msg)
# получение квитанций
receipts = client.get_receipts(msg_id=msg.oid)
for rcpt in receipts:
client.download(rcpt)
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
cbr-client-0.1.1.tar.gz
(4.8 kB
view hashes)
Built Distribution
Close
Hashes for cbr_client-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b33a4a9c251db66d2a03de706bbd138475f27f91e87d9199c8ac8bf15cd8785 |
|
MD5 | 101bad541c84185a2f0cb5b5451deb88 |
|
BLAKE2b-256 | 01d2094daab7c8b8b8584cf4dacacf4a7a675cf5a891c62a5f6158959527d5ea |