goodmemory-client
Official Python client for the GoodMemory
HTTP bridge. Stdlib only — no third-party dependencies. Wire contract:
phase-39.http-memory.v1.
Deploy the bridge (Node/Bun sidecar or Docker; see the bridge guide), then:
pip install goodmemory-client
from goodmemory_client import GoodMemoryClient, Scope
client = GoodMemoryClient(
"http://127.0.0.1:8739",
token="your-bridge-token",
scope=Scope(user_id="u-1", workspace_id="workspace-a", session_id="s-1"),
)
client.wait_until_ready()
# Before your model call
recall = client.recall_context("What should the assistant know before replying?")
print(recall.context_text)
# routing shows silent strategy downgrades (e.g. hybrid -> rules-only when no
# embedding provider is configured on the bridge)
print(recall.routing.resolved_strategy, recall.routing.fallback_reason)
# After the response
client.remember([
{"role": "user", "content": "Remember that the rollout is blocked on QA signoff."},
])
# Corrections, audit, deletion
client.feedback("Keep summaries short.", idempotency_key="fb-1")
export = client.export()
client.revise(memory_id="<memory-id>", content="corrected fact",
reason="user correction", idempotency_key="rev-1")
client.forget("<memory-id>")
Notes:
- Caller headers (
x-goodmemory-*) are derived from theScopeyou pass — the bridge requires the header caller and body scope to match. Per-callscope=overrides re-derive them. operationsdefaults to"*"; pass an explicit list (e.g.["recall-context", "remember"]) for least privilege —export,forget, andreviseare sensitive operations the bridge authorizes individually.- Idempotency keys mirror the server: always required for
feedbackandrevise, required forremember(mode="async")only. - Bridge errors raise
GoodMemoryBridgeErrorwith.code,.status, and.body; connection failures retry, HTTP-status errors never do (a 409idempotency_conflictsurfaces immediately).
Metadata
Release files for goodmemory-client 0.1.0
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 |
|---|---|---|---|---|
| goodmemory_client-0.1.0.tar.gz | 8.5 kB | Without provenance | Details for goodmemory_client-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| goodmemory_client-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for goodmemory_client-0.1.0-py3-none-any.whl |
Total release size: 15.5 kB
Release files / goodmemory_client-0.1.0.tar.gz
| Download URL | goodmemory_client-0.1.0.tar.gz |
|---|---|
| Size | 8.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e6a87defb91b050bcedcb67eaf9f1e1ed96a812ff4670635c5bee74eb4a8345b
|
|
BLAKE2b-256 checksum How to use checksums |
18be79ac3a57f9ccc66950e7736b8f9f01770fc2d360f25f4f99c27207c82975
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|
Release files / goodmemory_client-0.1.0-py3-none-any.whl
| Download URL | goodmemory_client-0.1.0-py3-none-any.whl |
|---|---|
| Size | 7.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7f4560d867d850bea08797d5dde6b821386c230093bb0c843cb3bd0f6cf43b95
|
|
BLAKE2b-256 checksum How to use checksums |
2daf63409e49d8b6d3957d8f844c7186fc59b6ec1489fea384174adcc2227853
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|
Security for goodmemory-client 0.1.0
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.