Skip to main content

Python client for Engram Cloud - AI memory infrastructure

Project description

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

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

engram_client-0.4.0.tar.gz (30.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

engram_client-0.4.0-py3-none-any.whl (23.6 kB view details)

Uploaded Python 3

File details

Details for the file engram_client-0.4.0.tar.gz.

File metadata

  • Download URL: engram_client-0.4.0.tar.gz
  • Upload date:
  • Size: 30.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for engram_client-0.4.0.tar.gz
Algorithm Hash digest
SHA256 24bed4bfe827d34448431181b894fdf9b1622a6641c64d99da2e8d22eb886427
MD5 756d1b575e321ea832ce04814a83d604
BLAKE2b-256 e7cbc001bac03f8fff997744a1a4bdf58fa5bc0721a002898a16efcec979a5ec

See more details on using hashes here.

File details

Details for the file engram_client-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: engram_client-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 23.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for engram_client-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b9261db47e5dead2b10a117bb1272f2e3ef525ec58b63c82022e43b5157cd43f
MD5 124cb8ba0b877c7b9c5c8e770c9bc757
BLAKE2b-256 d4448e7b2ab981aeda0f1bdfd4c0b1fde0ef310775799a35d0f0a62ae9e5892c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page