Python client for Engram Cloud - AI memory infrastructure
Project description
engram-client
Python client for Engram Cloud - AI memory infrastructure for agents.
Installation
pip install engram-client
Quick Start
from engram_client import EngramClient
client = EngramClient(
base_url="https://engram-cloud-gateway.fly.dev",
api_key="ek_...",
tenant="my-tenant",
)
# Create a memory
memory = client.create(
"User prefers dark mode",
tags=["preferences", "ui"],
workspace="my-project",
)
# Search (hybrid: BM25 + vector + fuzzy)
results = client.search("user preferences")
# List with filters
memories = client.list(limit=20, workspace="my-project")
# Get by ID
memory = client.get(42)
# Update
client.update(42, content="User prefers light mode", tags=["preferences"])
# Delete
client.delete(42)
# Stats
stats = client.stats()
Context Manager
with EngramClient(base_url="...", api_key="...", tenant="...") as client:
client.create("Hello from Python SDK")
API Reference
EngramClient(base_url, api_key, tenant)
| Method | Description |
|---|---|
create(content, **kwargs) |
Create a memory |
get(id) |
Get memory by ID |
update(id, **kwargs) |
Update a memory |
delete(id) |
Delete a memory |
list(**kwargs) |
List memories with filters |
search(query, **kwargs) |
Hybrid search |
stats() |
Storage statistics |
Parameters
create / update kwargs: tags, workspace, memory_type, importance, metadata, tier
list kwargs: limit, offset, workspace, memory_type, tags, sort_by, sort_order
search kwargs: limit, workspace, tags, memory_type, include_archived
Requirements
- Python >= 3.9
- httpx >= 0.25.0
Related
- Engram - Core memory engine (Rust)
- Engram Cloud - Multi-tenant SaaS gateway
- engram-client - TypeScript client
License
MIT
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file engram_client-0.2.0.tar.gz.
File metadata
- Download URL: engram_client-0.2.0.tar.gz
- Upload date:
- Size: 22.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
abee58d19c0680e2e66ae0eb26fc1ffabedb681a4d24e2205db5baccbcfd9dd5
|
|
| MD5 |
1e5b5ff056e194df1f398d2f6f89da16
|
|
| BLAKE2b-256 |
f2faea636daf5132a62fa7554d2e35f25a0b0139482dc6816f44d3203020f09f
|
File details
Details for the file engram_client-0.2.0-py3-none-any.whl.
File metadata
- Download URL: engram_client-0.2.0-py3-none-any.whl
- Upload date:
- Size: 17.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ba48d48c24be98786ee5e1ae9dbfe1ecf5fdd2f7b0a227f19f10da4b04afa121
|
|
| MD5 |
72592c3468db9b0afa8a6803c7f3a3f1
|
|
| BLAKE2b-256 |
44499dc24906937cc45f15c1e8a26900570d5d1e74949c1ab8f38f4fd8a5720d
|