Skip to main content

Python SDK

The Z3rno Python SDK is a thin httpx-based client for the z3rno-server HTTP API. It ships sync and async clients with identical surfaces — every method on Z3rnoClient exists as an async def on AsyncZ3rnoClient, plus one extra (recall_stream_sse) that’s async-only. Current version: z3rno 0.7.0 on PyPI. Requires Python 3.11+.

Install

Client

Async variant:

Method reference

Memory primitives

Streaming recall (Phase G slice 5)

Conversation memory (Phase G slice 2)

Forge — ingest, distill, refine

Tenant self-management (v0.20.3)

Sessions

Framework integrations

Each integration lives in z3rno.integrations.* and lazy-imports its host package — installing z3rno alone is enough until you actually use one. LangChain example:
See LangChain integration for the full agent-side wiring.

Models

Pydantic models exported from z3rno:

Exceptions

All inherit from Z3rnoError:

Reference