Python client SDK for Stigmem — the federated knowledge fabric
Project description
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
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 stigmem_py-0.9.0a6.tar.gz.
File metadata
- Download URL: stigmem_py-0.9.0a6.tar.gz
- Upload date:
- Size: 13.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 |
3cee2cefb4f3ee8aedfed3d2145b275c6d4cba17f1ee320a2434fb562d2aece1
|
|
| MD5 |
049c1bfbde7f8e934d7cabb2410ae839
|
|
| BLAKE2b-256 |
4753fbc81a629304d29b6818b7b082ccb1d1ab7281912d8188ac62bf0efb32ba
|
Provenance
The following attestation bundles were made for stigmem_py-0.9.0a6.tar.gz:
Publisher:
publish.yml on eidetic-labs/stigmem
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
stigmem_py-0.9.0a6.tar.gz -
Subject digest:
3cee2cefb4f3ee8aedfed3d2145b275c6d4cba17f1ee320a2434fb562d2aece1 - Sigstore transparency entry: 1613825342
- Sigstore integration time:
-
Permalink:
eidetic-labs/stigmem@703d30eaa6ed0041d001cd66dadba73a3901e995 -
Branch / Tag:
refs/tags/v0.9.0a6 - Owner: https://github.com/eidetic-labs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@703d30eaa6ed0041d001cd66dadba73a3901e995 -
Trigger Event:
push
-
Statement type:
File details
Details for the file stigmem_py-0.9.0a6-py3-none-any.whl.
File metadata
- Download URL: stigmem_py-0.9.0a6-py3-none-any.whl
- Upload date:
- Size: 10.7 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 |
c642ffee45c647c6dd6a6bfc576e2b16ca465eb345d0ee9ee8b5e6405609b2d6
|
|
| MD5 |
28b3f540ca9f5d7e1c167a392597a81c
|
|
| BLAKE2b-256 |
8261eec183393cb898ca78d6e28620d782f95bc70bcf74a8a04aea7bd93f2321
|
Provenance
The following attestation bundles were made for stigmem_py-0.9.0a6-py3-none-any.whl:
Publisher:
publish.yml on eidetic-labs/stigmem
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
stigmem_py-0.9.0a6-py3-none-any.whl -
Subject digest:
c642ffee45c647c6dd6a6bfc576e2b16ca465eb345d0ee9ee8b5e6405609b2d6 - Sigstore transparency entry: 1613825456
- Sigstore integration time:
-
Permalink:
eidetic-labs/stigmem@703d30eaa6ed0041d001cd66dadba73a3901e995 -
Branch / Tag:
refs/tags/v0.9.0a6 - Owner: https://github.com/eidetic-labs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@703d30eaa6ed0041d001cd66dadba73a3901e995 -
Trigger Event:
push
-
Statement type: