Skip to main content

membase-sdk

Your memory, from code. The official Python client for the Membase API.

pip install membase-sdk
export MEMBASE_API_KEY="mbk_…"     # Connect › Developer keys in the Membase app
from membase import Membase

client = Membase()

client.add("Call notes with Acme: they want SSO before the pilot.", container="mv-…", custom_id="call-2026-09-24")
hits = client.search("what does Acme need before the pilot", limit=5)
print(hits["results"][0]["content"])

client.profile(q="working hours")           # who the user is (needs the profile tick on the key)
client.containers.list()
client.documents.list(container="mv-…")
client.memories.add("The user prefers dark mode.", static=True)
client.documents.delete("srcitem_…", confirm=True)   # Full access; confirm means the person agreed

Every method is one operation of the Membase agent protocol; access level, reach and confirmation rules are enforced server-side. Errors are one class per HTTP status (PermissionDeniedError, RateLimitError, …) and carry the API's code and trace_id. 429 and 5xx answers are retried twice with backoff; the default timeout is 90 s, because the first search after a quiet spell waits for the user's memory to wake.

Docs: the developer documentation's SDK Quickstart. Works against a self-hosted Membase too: Membase(base_url="http://localhost:8080").

Metadata

Release files for membase-sdk 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for membase-sdk 0.1.0
File Size Uploaded
membase_sdk-0.1.0.tar.gz 6.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for membase-sdk 0.1.0
File Interpreter ABI Platform
membase_sdk-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 14.7 kB

Release files / membase_sdk-0.1.0.tar.gz

Download URL membase_sdk-0.1.0.tar.gz
Size 6.9 kB
Tags Source
SHA-256 checksum
How to use checksums
baede93146cdd9e290b01e65ed9a8c629e447362024e4c85f20322dba0e213c4
BLAKE2b-256 checksum
How to use checksums
f9ce20619aa31c3a1277300c3336d922fe74fd7cbeccb9cb0e96df921b0fa017
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.12

Release files / membase_sdk-0.1.0-py3-none-any.whl

Download URL membase_sdk-0.1.0-py3-none-any.whl
Size 7.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0d8a5ffcfac95ec4271a76645a6f2559f0a9439d6fddd0b48b8d5d575d76e420
BLAKE2b-256 checksum
How to use checksums
085ed8d48287696c8824173483a8fc842cb9eb798df9eeefa3eb29f2187126fb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.12

Release history Release notifications | RSS feed

0.2.0

2 release files

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page