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

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.4.0

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.4.0
File Size Uploaded
hilbras_remembra-5.4.0.tar.gz 17.1 kB Details

Built distribution (wheel)

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

Total release size: 29.4 kB

Release files / hilbras_remembra-5.4.0.tar.gz

Download URL hilbras_remembra-5.4.0.tar.gz
Size 17.1 kB
Tags Source
SHA-256 checksum
How to use checksums
8c6c9604742aab0baef4aa2b4a6f14366559bcd680cb676fb8663950d2060043
BLAKE2b-256 checksum
How to use checksums
b2dd46d5fb9cd7f97246ecacba6113671c6f03b88caf267ae04fd7ba62f5d366
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.4.0-py3-none-any.whl

Download URL hilbras_remembra-5.4.0-py3-none-any.whl
Size 12.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dc93ecf3310805417374296501b675bbe05ef24c6aa16adaba34bc5ff6c11a11
BLAKE2b-256 checksum
How to use checksums
b1c69649f8a49f73a8eea079f726f9ca62a5eb99f5fbf7f6d3576937ba67d52b
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

5.5.1

2 release files

5.5.0

2 release files

This release

5.4.0 This release

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