Skip to main content

"""Remembra Python client.

A dependency-free client for the Remembra memory API. It mirrors the published @hilbras/remembra TypeScript SDK in paths, authentication, error classes, retry policy, pagination, and idempotency rules.

Install

pip install hilbras-remembra

Building from a checkout needs build and twine; use python3, since many distributions ship no bare python, and a virtual environment where the system interpreter is externally managed:

python3 -m venv .venv && .venv/bin/pip install build twine
cd python && ../.venv/bin/python -m build && ../.venv/bin/python -m twine upload dist/*

Use

from remembra import Remembra

client = Remembra("http://127.0.0.1:8787", api_key="your-key")

client.store({"type": "fact", "content": "the release train leaves at 09:00"})
results = client.search({"query": "release train", "limit": 5})
for page in client.iter_list({"limit": 50}):
    ...

The asynchronous client has the same surface and the same policy:

import asyncio
from remembra import AsyncRemembra

async def main() -> None:
    async with AsyncRemembra("http://127.0.0.1:8787", api_key="your-key") as client:
        await client.store({"type": "fact", "content": "deploy window is tuesday 02:00"})

asyncio.run(main())

Guarantees

  • No runtime dependencies. The client uses the standard library only.
  • Writes are never retried automatically. Retries apply to read-only requests only, so a retry can never duplicate a mutation.
  • Bounded everything. Timeouts, retry attempts, pagination limits, search limits, and batch size/count budgets are validated before a request is sent.
  • Server-managed identity is never sent. store rejects id, tenantId, organizationId, userId, agentId, and embedding fields.
  • Typed errors. ApiError (status, code, body), NetworkError, RequestTimeout, and ValidationError all derive from RemembraError.
  • Idempotency parity. Idempotency-Key is accepted only for batch mutations, and a keyed response containing a failed item is rejected.

Metadata

Release files for hilbras-remembra 5.5.1

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

Source distribution (sdist)

Source distribution for hilbras-remembra 5.5.1
File Size Uploaded
hilbras_remembra-5.5.1.tar.gz 17.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for hilbras-remembra 5.5.1
File Interpreter ABI Platform
hilbras_remembra-5.5.1-py3-none-any.whl Python 3 none any Details

Total release size: 29.8 kB

Release files / hilbras_remembra-5.5.1.tar.gz

Download URL hilbras_remembra-5.5.1.tar.gz
Size 17.3 kB
Tags Source
SHA-256 checksum
How to use checksums
3f01f05e2d13f637b64fa92ee0dd005887081baf054599b1e67e5c196073c2bc
BLAKE2b-256 checksum
How to use checksums
adc58147def7af1c08931797b529a09a8122b789090d4151da95aa0e7f86dd4c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Release files / hilbras_remembra-5.5.1-py3-none-any.whl

Download URL hilbras_remembra-5.5.1-py3-none-any.whl
Size 12.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5e0ed294cb44c5a8d1a85f57aa43ee6aebf807ee0b3bdc2815ee7b411ce45972
BLAKE2b-256 checksum
How to use checksums
b1875d8e4a03864b00f8cbaf9a8269460f3ad2b5b4380acd2cc1744e913d491a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Release history Release notifications | RSS feed

This release

5.5.1 This release

2 release files

5.5.0

2 release files

5.4.0

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