Remembr Python SDK
remembr is the official Python SDK for Remembr. It gives Python applications a typed async client for sessions, memory storage, search, checkpoints, export, and forget workflows.
Install
pip install remembr
EMBEDDING_PROVIDER=sentence_transformers is the default for bare installs, so you do not need a JINA_API_KEY just to get started locally.
Quick Start
import asyncio
from remembr import RemembrClient
async def main() -> None:
async with RemembrClient(
api_key="your-api-key",
base_url="http://localhost:8000/api/v1",
) as client:
session = await client.create_session(
metadata={"user": "demo", "context": "support"}
)
await client.store(
content="User prefers Friday billing summaries.",
role="user",
session_id=session.session_id,
tags=["kind:preference", "topic:billing"],
)
results = await client.search(
query="When should billing summaries be sent?",
session_id=session.session_id,
limit=5,
search_mode="hybrid",
weights={"semantic": 0.6, "keyword": 0.3, "recency": 0.1},
)
for memory in results.results:
print(memory.content, memory.score)
asyncio.run(main())
Local Server Setup
git clone https://github.com/ai-emart/remembr.git
cd remembr
cp .env.example .env
python -c "import secrets; print(secrets.token_hex(32))"
# paste the generated value into SECRET_KEY in .env
bash scripts/docker-init.sh
curl http://localhost:8000/health
The Docker bootstrap flow works without Jina. For a plain Python install outside Docker, the default embedding backend is sentence_transformers.
Configuration
from remembr import RemembrClient
client = RemembrClient(
api_key="your-api-key",
base_url="http://localhost:8000/api/v1",
timeout=30.0,
)
Environment Variables
| Variable | Purpose | Required | Default |
|---|---|---|---|
REMEMBR_API_KEY |
Default API key for the client | No | None |
REMEMBR_BASE_URL |
Default API base URL | No | http://localhost:8000/api/v1 |
EMBEDDING_PROVIDER |
Active embedding backend for self-hosted deployments | No | sentence_transformers |
SENTENCE_TRANSFORMERS_MODEL |
Local sentence-transformers model | No | all-MiniLM-L6-v2 |
JINA_API_KEY |
Jina API key when using the Jina backend | No | None |
OLLAMA_BASE_URL |
Ollama base URL when using the Ollama backend | No | http://localhost:11434 |
OPENAI_API_KEY |
OpenAI API key when using the OpenAI backend | No | None |
Docs
- Full docs: https://github.com/ai-emart/remembr/tree/main/docs
- Quick start: https://github.com/ai-emart/remembr#quick-start
- API reference: https://github.com/ai-emart/remembr/blob/main/docs/api-reference.md
- Framework adapters: https://github.com/ai-emart/remembr/tree/main/adapters
Metadata
Release files for remembr 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| remembr-0.2.0.tar.gz | 20.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| remembr-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 39.8 kB
Release files / remembr-0.2.0.tar.gz
| Download URL | remembr-0.2.0.tar.gz |
|---|---|
| Size | 20.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5397487c3023a4e894d9d3403b2785bf97838c91d3285461e0f04ff62a1a38e8
|
|
BLAKE2b-256 checksum How to use checksums |
a0d417dd1b48d595b6b2e8fddaf5fb3f23d8ec9c6195c050a40ce08e405262de
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.15
|
Release files / remembr-0.2.0-py3-none-any.whl
| Download URL | remembr-0.2.0-py3-none-any.whl |
|---|---|
| Size | 19.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
aa3c8417aa13057d71500142825a2e3d724e4ad011e2cd5ea7835ad7f17c74ee
|
|
BLAKE2b-256 checksum How to use checksums |
cbb62d73ed4eff00c0bcea7949a2c22db3b06e89a4d327bd6f0776cf6ef60192
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.15
|
Security for remembr 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.