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.3.0.tar.gz (22.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.3.0-py3-none-any.whl (18.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: engram_client-0.3.0.tar.gz
  • Upload date:
  • Size: 22.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.3.0.tar.gz
Algorithm Hash digest
SHA256 fadac9548659d50895bf62d7417daea646c5b5269db2403e58f105504121a566
MD5 1d673ebaa320037b9cc3e2c1c39603e4
BLAKE2b-256 70444c0d567bdd641d52134452c15621f8376e9c3ed22a4955cbc7670688de2f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: engram_client-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 18.1 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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fb4c0b5970ce2920d5d258264d27a678909ee69cbd3f7b360914c406d2d58f9e
MD5 02e9c96efa15369c63c79298f7b73a98
BLAKE2b-256 eb27fadc6d5a958f498868588d562289c5eacebef6d9712b88f37ca22c84f37a

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