Skip to main content

engram-client

PyPI Python License: MIT

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

License

MIT

Metadata

Release files for engram-client 0.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 engram-client 0.4.0
File Size Uploaded
engram_client-0.4.0.tar.gz 30.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for engram-client 0.4.0
File Interpreter ABI Platform
engram_client-0.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 54.4 kB

Release files / engram_client-0.4.0.tar.gz

Download URL engram_client-0.4.0.tar.gz
Size 30.9 kB
Tags Source
SHA-256 checksum
How to use checksums
24bed4bfe827d34448431181b894fdf9b1622a6641c64d99da2e8d22eb886427
BLAKE2b-256 checksum
How to use checksums
e7cbc001bac03f8fff997744a1a4bdf58fa5bc0721a002898a16efcec979a5ec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Release files / engram_client-0.4.0-py3-none-any.whl

Download URL engram_client-0.4.0-py3-none-any.whl
Size 23.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b9261db47e5dead2b10a117bb1272f2e3ef525ec58b63c82022e43b5157cd43f
BLAKE2b-256 checksum
How to use checksums
d4448e7b2ab981aeda0f1bdfd4c0b1fde0ef310775799a35d0f0a62ae9e5892c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 release files

0.3.0

2 release files

0.2.0

2 release files

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