Changelog
Python SDK changelog
Release notes for brain-db-sdk on PyPI.
0.1.0 — initial public pre-release
The first published version of the hand-written Python SDK
(pip install brain-db-sdk, import brain_db_sdk). Feature-parity with the
TypeScript SDK, two clients over one package.
Added
- HTTP client —
BrainHttpClient, a synchronous JSON client built on the standard library'surllib.request(zero third-party dependencies). Verbs:encode,recall,forget,link,unlink,plan,reason,whoami,capabilities. SignatureBrainHttpClient(api_key, base_url=..., timeout=30.0, retry=None)—api_keypositional first;base_urldefaults tohttp://127.0.0.1:8080. - Wire client —
BrainClient, speaking theBRN0binary protocol with the full surface: memory verbs plus typed-graph create/read, schema, transactions, andSUBSCRIBEstreaming. Connect withBrainClient.connect(host, port, auth)/.connect_with(host, port, config). - Membership-shaped recall —
recallreturns aSingle/Many/Noneverdict with the supporting memories, not a ranked list. Absence is explicit. - Request builders —
EncodeBuilder,RecallBuilder,ForgetBuilder, including per-requestact_as(namespace, agent_id). - Auth —
Authorization: Bearer <key>on the HTTP client; token / mTLS on the wire client after theWELCOMEhandshake. - Connection pool, mux, and retry — a pooled multiplexed connection and an
HttpRetryPolicy(idempotent verbs only:encode,whoami,capabilities; retried on503and transport/timeout, honoringRetry-After). - Error taxonomy —
BrainHttpError(status/code/message) for the HTTP client and the wire-client error hierarchy, both exported from the package root. - Wire layer — CBOR codec (shortest round-tripping float per field), frame codec with CRC32C, and opcode table, validated against the shared wire conformance corpus so the Python, TypeScript, and Rust SDKs stay byte-for-byte in agreement.
See also
Was this page helpful?