Engramme Python SDK
Engramme is the API to augment human memory.
Engramme turns documents, notes, transcripts, and other lived context into structured episodic memories. Its Large Memory Models (LMMs) extract who was involved, what happened, when it happened, and how experiences connect, so applications can help people recall relevant memories naturally.
Use the Python SDK to build with Engramme from notebooks, scripts, backend services, and internal tools.
The SDK currently supports the tested public workflow:
- Authenticate with an Engramme API key.
- Upload content with
memorize. - Retrieve raw memories with
recall. - Check API health.
It does not expose ask() or feedback submission yet. Feedback is currently handled by the Engramme webapp while we keep the public SDK contract focused and stable.
Installation
pip install engramme
Authentication
Pass an API key directly:
from engramme import Engramme
client = Engramme(api_key="eng_sk_...")
Or set an environment variable:
export ENGRAMME_API_KEY="eng_sk_..."
Then initialize without arguments:
from engramme import Engramme
client = Engramme()
You can also save a key locally:
engramme login
engramme whoami
engramme profiles
engramme logout
Local credentials are stored in ~/.engramme/config.yaml. Override that path with:
export ENGRAMME_CONFIG_PATH="/path/to/config.yaml"
Quickstart
from engramme import Engramme
client = Engramme()
print(client.health_check())
upload = client.memorize(
file=b"Meeting notes about the Q4 roadmap and launch timeline.",
user_name="Sanket",
source_type="text",
filename="meeting-notes.txt",
)
print(upload["item_id"])
results = client.recall("Q4 roadmap launch timeline")
for memory in results.get("memories", []):
print(memory)
Memorization starts asynchronous processing. A successful memorize response means the upload was accepted and a workflow started; the content may not be immediately recallable.
API
Engramme(...)
client = Engramme(
api_key=None,
profile=None,
base_url="https://memorymachines-gateway-prod-btf57kda.uc.gateway.dev",
timeout=30,
)
API key resolution order:
- Explicit
api_key ENGRAMME_API_KEY- Active profile in
~/.engramme/config.yaml
memorize(...)
Upload content for memory extraction and indexing.
client.memorize(
file="notes.txt",
user_name="Sanket",
item_id="optional-stable-id",
source_type="text",
)
file can be:
- A path string
- A
pathlib.Path - Raw bytes
When passing bytes, use filename if you want a specific uploaded filename:
client.memorize(
file=b"Some text",
user_name="Sanket",
source_type="text",
filename="note.txt",
)
recall(...)
Retrieve memories by semantic similarity.
results = client.recall(
"meetings about roadmap planning",
source="text",
enable_trace=True,
alpha=0.5,
)
Arguments:
text: Query text, max 1000 characters.source: Optional source filter.enable_trace: Include trace metadata when the API supports it.alpha: Optional hybrid search weight between0.0and1.0.
health_check()
ok = client.health_check()
Returns True when GET /v1/health returns HTTP 200.
Feedback
Feedback is not part of the public SDK surface yet.
The Engramme webapp supports rich recall feedback, including overall ratings, memory-level ratings, comments, and issue codes. That flow is currently owned by the webapp backend, not the Core API gateway used by this SDK.
When a stable SDK-facing feedback endpoint exists, the SDK should expose a simple method that lets developers rate recall quality without knowing the webapp telemetry schema.
Errors
The SDK raises:
AuthenticationErrorRateLimitErrorNotFoundErrorValidationErrorAPIError
All inherit from EngrammeError.
Metadata
Release files for engramme 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| engramme-0.1.1.tar.gz | 16.9 kB | Without provenance | Details for engramme-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| engramme-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for engramme-0.1.1-py3-none-any.whl |
Total release size: 29.9 kB
Release files / engramme-0.1.1.tar.gz
| Download URL | engramme-0.1.1.tar.gz |
|---|---|
| Size | 16.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f1e6e83d8ed8e9b2a1aa90f1237c4021cb90a52a774d33e654a3f93b78b78ea2
|
|
BLAKE2b-256 checksum How to use checksums |
501bf99be47c33b732b0f8169ae07666d8b97c2215ad6f98e8a950251f8afa0a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Release files / engramme-0.1.1-py3-none-any.whl
| Download URL | engramme-0.1.1-py3-none-any.whl |
|---|---|
| Size | 13.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5439a664050b4b45ac264594fc183edf4e4f87b94e42c77d398d7a6d1d0a8f6d
|
|
BLAKE2b-256 checksum How to use checksums |
2b5b3fe8a859a167a1c4ffa923e8b21508385bd1d3338d45cefbd3dcf7776a7d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Security for engramme 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.