{"id":49074452,"url":"https://github.com/the-ai-project-co/z3rno-sdk-python","last_synced_at":"2026-05-11T09:56:25.406Z","repository":{"id":350669124,"uuid":"1207786132","full_name":"the-ai-project-co/z3rno-sdk-python","owner":"the-ai-project-co","description":"Official Python SDK for Z3rno: thin httpx + Pydantic HTTP client over z3rno-server","archived":false,"fork":false,"pushed_at":"2026-05-11T06:39:09.000Z","size":612,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-11T08:33:24.474Z","etag":null,"topics":["agent-memory","ai-agents","httpx","memory","pydantic","python","python-sdk","rag","vector-database"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/the-ai-project-co.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-11T11:59:26.000Z","updated_at":"2026-05-11T06:39:10.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/the-ai-project-co/z3rno-sdk-python","commit_stats":null,"previous_names":["the-ai-project-co/z3rno-sdk-python"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/the-ai-project-co/z3rno-sdk-python","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/the-ai-project-co%2Fz3rno-sdk-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/the-ai-project-co%2Fz3rno-sdk-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/the-ai-project-co%2Fz3rno-sdk-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/the-ai-project-co%2Fz3rno-sdk-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/the-ai-project-co","download_url":"https://codeload.github.com/the-ai-project-co/z3rno-sdk-python/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/the-ai-project-co%2Fz3rno-sdk-python/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32889971,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-10T13:40:02.631Z","status":"online","status_checked_at":"2026-05-11T02:00:05.975Z","response_time":120,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["agent-memory","ai-agents","httpx","memory","pydantic","python","python-sdk","rag","vector-database"],"created_at":"2026-04-20T09:08:07.592Z","updated_at":"2026-05-11T09:56:25.396Z","avatar_url":"https://github.com/the-ai-project-co.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# z3rno (Python SDK)\n\n[![License: Apache 2.0](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n[![CI](https://github.com/the-ai-project-co/z3rno-sdk-python/actions/workflows/ci.yml/badge.svg)](https://github.com/the-ai-project-co/z3rno-sdk-python/actions/workflows/ci.yml)\n[![PyPI](https://img.shields.io/pypi/v/z3rno)](https://pypi.org/project/z3rno/)\n\nPython SDK for Z3rno -- thin HTTP client for the Z3rno memory API.\n\n## Installation\n\n```bash\npip install z3rno\n```\n\n## Quickstart\n\n```python\nfrom z3rno import Z3rnoClient\n\nclient = Z3rnoClient(base_url=\"https://api.z3rno.dev\", api_key=\"z3rno_sk_...\")\nmemory = client.store(agent_id=\"agent-1\", content=\"User prefers dark mode\", memory_type=\"semantic\")\nresults = client.recall(agent_id=\"agent-1\", query=\"What does the user prefer?\", top_k=5)\nclient.forget(memory_id=memory.id)\n```\n\n## Async Usage\n\n```python\nfrom z3rno import AsyncZ3rnoClient\n\nasync def main():\n    async with AsyncZ3rnoClient(base_url=\"https://api.z3rno.dev\", api_key=\"z3rno_sk_...\") as client:\n        memory = await client.store(agent_id=\"agent-1\", content=\"User prefers dark mode\")\n        results = await client.recall(agent_id=\"agent-1\", query=\"preferences\")\n        await client.forget(memory_id=memory.id)\n```\n\n## Methods\n\n| Method | Description |\n|--------|-------------|\n| `store(...)` | Store a new memory with optional type, metadata, relationships, TTL, and importance |\n| `recall(...)` | Recall memories by semantic similarity query |\n| `forget(...)` | Soft-delete a memory by ID |\n| `audit(...)` | Query the audit trail with optional filters and pagination |\n\nAll methods are available on both `Z3rnoClient` (sync) and `AsyncZ3rnoClient` (async).\n\n## Features\n\n- **Thin HTTP client** -- only `httpx`, `pydantic`, and `tenacity` at runtime. No database drivers.\n- **Typed errors** -- `Z3rnoRateLimitError`, `Z3rnoAuthenticationError`, `Z3rnoValidationError`, each mapping to a specific HTTP status.\n- **Automatic retries** -- exponential backoff on connection errors and 5xx responses. `Retry-After` honored on 429.\n- **Context manager support** -- use `with` / `async with` for automatic cleanup.\n\n## Framework Integrations\n\nEach is a separate package that depends on `z3rno`:\n\n- `z3rno-langchain` -- LangChain `BaseMemory` + `BaseRetriever` adapter\n- `z3rno-crewai` -- CrewAI memory provider\n- `z3rno-openai` -- OpenAI Agents SDK function tools\n\nFor Anthropic Claude, see the `z3rno-mcp` Model Context Protocol server.\n\nFor a detailed step-by-step setup, see [QUICKSTART.md](QUICKSTART.md).\n\n## API Documentation\n\nFull API reference: [astron-bb4261fd.mintlify.app/sdk/python](https://astron-bb4261fd.mintlify.app/sdk/python)\n\n## Development\n\n```bash\nuv sync --dev\nuv run ruff check .\nuv run mypy .\nuv run pytest\n```\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md) for the full workflow.\n\n## License\n\nApache 2.0 -- see [LICENSE](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthe-ai-project-co%2Fz3rno-sdk-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthe-ai-project-co%2Fz3rno-sdk-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthe-ai-project-co%2Fz3rno-sdk-python/lists"}