This release is a pre-release and may not be stable for production use.
stigmem-py
Python client SDK for Stigmem — the federated knowledge fabric.
Install
pip install stigmem-py
Quick start
from stigmem import StigmemClient, string_value
client = StigmemClient(url="http://localhost:8765", api_key="sk-...")
fact = client.assert_fact(
entity="user:alice",
relation="memory:role",
value=string_value("CEO"),
source="agent:cto",
session_id="session:example",
)
page = client.query(entity="user:alice", scope="company")
Session and provenance options
Agent integrations should pass a stable session_id on reads and writes so the
node can enforce same-session read/write graph isolation. Writes that summarize
facts read earlier in the same session should use
write_mode="summarize_with_provenance" and carry source facts in
derived_from.
from stigmem import text_value
client.assert_fact(
entity="handoff:session-123",
relation="intent:handoff_summary",
value=text_value("Summarized context for the next agent."),
source="agent:openclaw",
session_id="session:example",
write_mode="summarize_with_provenance",
derived_from=[{"fact_id": "fact-source-001"}],
)
License
Apache-2.0
Release files for stigmem-py 0.9.0a12
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| stigmem_py-0.9.0a12.tar.gz | 13.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| stigmem_py-0.9.0a12-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 24.1 kB
Release files / stigmem_py-0.9.0a12.tar.gz
| Download URL | stigmem_py-0.9.0a12.tar.gz |
|---|---|
| Size | 13.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fe21fb4ff20b7a9622e1d3bc5287603cd1b2f3a6a07f2db4d185adafb16f3b42
|
|
BLAKE2b-256 checksum How to use checksums |
32ebf8a4e6ccb18bc12fd3bce58d032ca21132a8ced25c28ff148246def2c84b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 18, 2026.
Transparency logRelease files / stigmem_py-0.9.0a12-py3-none-any.whl
| Download URL | stigmem_py-0.9.0a12-py3-none-any.whl |
|---|---|
| Size | 10.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e1367df47cd3ded6e67098bd600dda53fa3812ad6dbabb3bdc234bacae4c22fa
|
|
BLAKE2b-256 checksum How to use checksums |
a7c2e0c9a5b348d13864012c29bd563c1aaac996f28c5dfb07ea246752e08aa7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 18, 2026.
Transparency log