Skip to main content

Engram Python SDK

Python SDK for Engram — the memory platform your apps write to and ask questions of.

pip install engram-ai-sdk
from engram_sdk import EngramClient

engram = EngramClient(org_id, user_id, api_key="egm_...")

# Anything can become a memory
engram.ingest.text("Ada prefers dark mode and terse replies")
engram.ingest.image("whiteboard.jpg", caption="sprint planning, 12 Mar")
engram.ingest.audio("standup.m4a")                      # transcribed server-side
engram.ingest.video("demo.mp4", keyframe=frame_bytes)
engram.ingest.document("retro-notes.md")

engram.conversation.ingest([
    {"role": "user", "content": "we should move the launch to April"},
    {"role": "assistant", "content": "noted — I'll tell the team"},
])

# Read it back by asking
scene = engram.memory.retrieve("what did we decide about the launch?")

Async is the same surface with await:

from engram_sdk import AsyncEngramClient

async with AsyncEngramClient(org_id, user_id, api_key="egm_...") as engram:
    await engram.ingest.text("hello")

The base URL defaults to Engram's hosted alpha, so a key is the only required configuration. Override with base_url= or ENGRAM_BASE_URL.

Documentation: https://alpha.getmetacognition.com/docs

Version 0.4.0.

Metadata

Release files for engram-ai-sdk 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-ai-sdk 0.4.0
File Size Uploaded
engram_ai_sdk-0.4.0.tar.gz 38.5 kB Details

Built distribution (wheel)

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

Total release size: 80.7 kB

Release files / engram_ai_sdk-0.4.0.tar.gz

Download URL engram_ai_sdk-0.4.0.tar.gz
Size 38.5 kB
Tags Source
SHA-256 checksum
How to use checksums
0e0bbe9d1c5eda4657989c0eac5d4ae669906da0e8244cedc4037cef24c3b97b
BLAKE2b-256 checksum
How to use checksums
c8ebf696783d37a425b1ba835f01a6bda286a1ab21662eeebc6d7eb081aa0a7c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.7

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

Download URL engram_ai_sdk-0.4.0-py3-none-any.whl
Size 42.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
11214861f5ac6fb7a8ca5c5486fe7c42314f74e2e7ba656fc8513a5da773a6ab
BLAKE2b-256 checksum
How to use checksums
5c554de87600719b210e3d70487fa951152e5c95c658d8d79bfc15064148e786
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.7

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 release files

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