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.1.0.tar.gz (3.8 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.1.0-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for engram_client-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ae28b6331f8e357b444fd19cbefe1cd7958baa4e46affb02c361653624e117d3
MD5 76beaa48c43c6ccda8e4ec2bc3e993f7
BLAKE2b-256 5d2aa573a25bebea661d906f5eca08e6a9c0b2b37723ba5667012707094504e2

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for engram_client-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f41903123270c0f6aa9716d724556fa181e13a4b43ce890b8518509bcf26f00e
MD5 b3b9d8f752ba8d324a5ac501985d3b90
BLAKE2b-256 994208d7c67c366a3c2cae15ab13465eb9f0cba00bd3fb4176ece95694431a79

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