SDK
Python
Use the zero-dependency Python client when you want a thin wrapper over the same REST contract.
Download
curl -fsS https://magla-memory.5-180-47-236.sslip.io/sdk/python -o magla_memory.py
Create the client
from magla_memory import Memory import os memory = Memory(os.environ["MAGLA_MEMORY_API_KEY"])
Read before durable work
work = memory.preflight(
"Prepare Acme proposal",
current_context="",
limit=5,
scope_lock="sales-acme",
)
print(work["resume_from"])Write only after verification
Use memory.record_outcome(...) with the work_receipt returned by preflight. The complete tested example is in the quickstart.