Python client for emem.dev, the agent-native Earth memory protocol
Project description
ememdev: Python client for emem.dev
Thin, typed Python client for the emem.dev Earth memory
protocol. Wraps the public REST surface (96 documented paths, 93 under
/v1/*) in a single Client class that returns parsed JSON verbatim. Every
ed25519-signed receipt and content-addressed CID is preserved for
citation and offline verification.
Install
pip install ememdev
The distribution is named ememdev; the import package is emem (so
pip install ememdev, then from emem import Client). To work from a
checkout instead:
pip install -e sdks/emem-py
Requires Python 3.9+. The only runtime dependency is
httpx.
Quick start
from emem import Client
with Client() as em:
cell = em.locate("Mount Fuji")["cell64"]
facts = em.recall(cell, bands=["copdem30m.elevation_mean"])
print(facts["facts"][0]["value"])
Async
import asyncio
from emem import AsyncClient
async def main() -> None:
async with AsyncClient() as em:
out = await em.ask("How tall is Mount Everest?")
print(out["answer"])
asyncio.run(main())
Configuration
| Env var | Default | Effect |
|---|---|---|
EMEM_BASE_URL |
https://emem.dev |
Responder root; point at a self-hosted node |
EMEM_TIMEOUT_SECS |
180 |
HTTP timeout (matches gateway timeout) |
You can also pass base_url= and timeout= directly to the constructor.
Surface coverage
Geocoder + read primitives, physics solvers, boring lat/lng shortcuts, and
introspection — see the inline docstring on emem.client for the full
endpoint → method mapping.
Receipts
Every non-introspection response carries a receipt block with:
responder_pubkey(ed25519 base32-nopad-lowercase)signature_b32(ed25519 over the canonical CBOR preimage)merkle_root(BLAKE3 over the fact CIDs)fact_cids[](the BLAKE3 CIDs of every fact returned)
To cite an answer: quote receipt.fact_cids[0] and the responder pubkey.
The signature can be verified offline against the public key at
https://emem.dev/.well-known/emem.json; no callback to the responder is
required.
License
Apache-2.0. Same as the upstream protocol.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ememdev-0.0.9.tar.gz.
File metadata
- Download URL: ememdev-0.0.9.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
590ed39db3971be40a3a4beded4935c509b2959b96350832247db4d9de83e6e1
|
|
| MD5 |
3359201b2c12058b983c04e63a142c43
|
|
| BLAKE2b-256 |
4cf884d4f909f592799ef3ac77a8b49d1c089c1870caadcef4ce825b03f39b28
|
Provenance
The following attestation bundles were made for ememdev-0.0.9.tar.gz:
Publisher:
publish-pypi.yml on Vortx-AI/emem
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ememdev-0.0.9.tar.gz -
Subject digest:
590ed39db3971be40a3a4beded4935c509b2959b96350832247db4d9de83e6e1 - Sigstore transparency entry: 1701155669
- Sigstore integration time:
-
Permalink:
Vortx-AI/emem@8105266a316ffb02ffba0245873754fbc07ba42b -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Vortx-AI
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@8105266a316ffb02ffba0245873754fbc07ba42b -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file ememdev-0.0.9-py3-none-any.whl.
File metadata
- Download URL: ememdev-0.0.9-py3-none-any.whl
- Upload date:
- Size: 2.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d6bd364837438faf27d645671058058394a6bca65a725d8add37abf99f239a74
|
|
| MD5 |
f33c2e3f44c6d22759038a0d66b008aa
|
|
| BLAKE2b-256 |
3e18a7080828a9a3d8d89e165949ab35829a8f33da766f494466a61c5d671d47
|
Provenance
The following attestation bundles were made for ememdev-0.0.9-py3-none-any.whl:
Publisher:
publish-pypi.yml on Vortx-AI/emem
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ememdev-0.0.9-py3-none-any.whl -
Subject digest:
d6bd364837438faf27d645671058058394a6bca65a725d8add37abf99f239a74 - Sigstore transparency entry: 1701155731
- Sigstore integration time:
-
Permalink:
Vortx-AI/emem@8105266a316ffb02ffba0245873754fbc07ba42b -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Vortx-AI
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@8105266a316ffb02ffba0245873754fbc07ba42b -
Trigger Event:
workflow_dispatch
-
Statement type: