Skip to main content

grind-t-cbr-ratings

Weekly Export

Async Python client for the Bank of Russia credit ratings registry. Python port of @grind-t/cbr-ratings.

Installation

uv add grind-t-cbr-ratings

Usage

import asyncio
from datetime import date

import httpx
from cbr_ratings import CbrRatingsClient


async def main():
    async with httpx.AsyncClient(timeout=30) as http:
        client = CbrRatingsClient(http)
        items = await client.query(
            isin="RU000A1025U5",
            date_from=date(2020, 1, 1),
            type_group=["Финансовые инструменты"],
        )

    for item in items:
        print(
            item.kra_code,
            item.rating_code,
            item.prediction,
        )


asyncio.run(main())

API

Name Description
CbrRatingsClient(...).query(...) Search the registry; all filters of the site's advanced form
RatingItem Pydantic model of one registry row; the type of items returned by query
latest_rating(items) Newest non-withdrawn rating, or None
latest_ratings_by_kra(items) Newest non-withdrawn rating per agency

All of them are importable from the package root: from cbr_ratings import ....

Metadata

Release files for grind-t-cbr-ratings 0.1.0

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

Source distribution (sdist)

Source distribution for grind-t-cbr-ratings 0.1.0
File Size Uploaded
grind_t_cbr_ratings-0.1.0.tar.gz 11.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for grind-t-cbr-ratings 0.1.0
File Interpreter ABI Platform
grind_t_cbr_ratings-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 30.6 kB

Release files / grind_t_cbr_ratings-0.1.0.tar.gz

Download URL grind_t_cbr_ratings-0.1.0.tar.gz
Size 11.5 kB
Tags Source
SHA-256 checksum
How to use checksums
8a120dff6a54dbff2c03926b8570acbe3c9a22d2232e0cf98bcecef9bf3e87a3
BLAKE2b-256 checksum
How to use checksums
fa855c83cac2e80c621ed2159bd18773e09685e1fa883222f78182d1143db602
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.9 {"installer":{"name":"uv","version":"0.12.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / grind_t_cbr_ratings-0.1.0-py3-none-any.whl

Download URL grind_t_cbr_ratings-0.1.0-py3-none-any.whl
Size 19.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fd22eeda315dfded6665b20dbb2f070fd201e0e7f46b1fb50b383b3f7b52d86d
BLAKE2b-256 checksum
How to use checksums
8c1fb74daa8da0fe539c1630306517b07796e72afd1325aa01e81f9d3cbc79cf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.9 {"installer":{"name":"uv","version":"0.12.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

0.1.1

2 release files

This release

0.1.0 This release

2 release files

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