ledger-api-client
A standalone Python client for the FinOS Ledger API (import name
finos.ledger_api_client). Extracted from finos-automation-sdk (Spec 037 /
FINOS-246) so both the SDK and apps/platform-api can call the Ledger API without
pulling the whole automation SDK.
from finos.ledger_api_client import LedgerApiClient
async with LedgerApiClient(base_url, jwt) as client:
ledgers = await client.api.ledgers.list_ledgers()
one = await client.api.ledgers.get_ledger(ledger_id="led_1")
client.api.<tag>.<op>(...)— operations are reflected by tag from the OpenAPI-generated client under_generated/, so nothing is hand-written and nothing needs re-writing when the client is regenerated.- Each call returns the parsed 2xx body or raises a typed error
(
finos.ledger_api_client.errors): 401→AuthenticationError, 403→AuthorizationError, 404→NotFoundError, 409→ConflictError, 422→ValidationError, 5xx/other→ServerError. - Both
base_urlandjwtare always required (no env fallback). The client never mints and never talks to an auth provider.
Standalone by design: depends only on httpx + attrs + python-dateutil —
no finos.shared, no fastapi — so finos-automation-sdk stays
pip-installable on Windmill.
See AGENTS.md for the full package guide and regeneration steps.
Metadata
Release files for finos-ledger-api-client 0.8.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| finos_ledger_api_client-0.8.0.tar.gz | 110.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| finos_ledger_api_client-0.8.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 414.2 kB
Release files / finos_ledger_api_client-0.8.0.tar.gz
| Download URL | finos_ledger_api_client-0.8.0.tar.gz |
|---|---|
| Size | 110.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
725753813ed2225e858f04545a7a53cf1436c1a9a0fc1ba3f3190f26c7154278
|
|
BLAKE2b-256 checksum How to use checksums |
ec476bf189c9de4c47e48284cb3c542b9364bc6ffc07db5842da148d186305cc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / finos_ledger_api_client-0.8.0-py3-none-any.whl
| Download URL | finos_ledger_api_client-0.8.0-py3-none-any.whl |
|---|---|
| Size | 304.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f1c6e22ed91e5d7289d048e82ffbfc4de0d8bb1362e8ced4d067c76ad1925136
|
|
BLAKE2b-256 checksum How to use checksums |
02553f2554cdc82f1de26fa404f609d68a0fbba191dcebbb673be9cd68c5357e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|