MemOS Python SDK 🧠
Official Python client for Distributed MemOS, a production-ready cognitive memory infrastructure for autonomous AI systems.
Installation
pip install memos-sdk
Quick Start
from memos_sdk import MemOSClient, MemoryType
# Connect to the MemOS Cluster
client = MemOSClient("localhost:50051")
tenant_id = "00000000-0000-0000-0000-000000000001"
agent_id = "00000000-0000-0000-0000-000000000002"
# 1. Store a Memory
memory_id = client.store(
tenant_id=tenant_id,
agent_id=agent_id,
content="The user prefers a high-contrast dark mode with large fonts.",
memory_type=MemoryType.MEMORY_TYPE_EPISODIC,
importance=0.85
)
print(f"Stored Memory: {memory_id}")
# 2. Retrieve with Cognitive Search
results = client.retrieve(
tenant_id=tenant_id,
agent_id=agent_id,
query="UI preferences dark mode",
limit=3
)
for res in results:
print(f"[{res.score:.2f}] {res.memory.content}")
Features
- gRPC based high-performance communication.
- Supports Cognitive Ranking (Semantic + Temporal + Importance).
- Thread-safe client implementation.
- Context manager support (
with MemOSClient() as client:).
Metadata
Release files for memos-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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| memos_sdk-0.1.0.tar.gz | 6.1 kB | Without provenance | Details for memos_sdk-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| memos_sdk-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for memos_sdk-0.1.0-py3-none-any.whl |
Total release size: 13.1 kB
Release files / memos_sdk-0.1.0.tar.gz
| Download URL | memos_sdk-0.1.0.tar.gz |
|---|---|
| Size | 6.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
30cf7863fabf98cd38c3dae459f80b5efd06649af8516d51d37bbc9b9573052f
|
|
BLAKE2b-256 checksum How to use checksums |
f2c0bf0d8a37f8906e2924d58002cb9fabcb6fef4fa5c15524d23ccb627ff91e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|
Release files / memos_sdk-0.1.0-py3-none-any.whl
| Download URL | memos_sdk-0.1.0-py3-none-any.whl |
|---|---|
| Size | 7.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e0eb57882b9726afb4289b709092a2c2de15a1a38c66a80c8dc4b1af4ac381b1
|
|
BLAKE2b-256 checksum How to use checksums |
c30863b68468d29da0e419162a4f2b91a5b73b7d13324e88749920241acd114b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|
Security for memos-sdk 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.