Python client for memX shared memory platform
Project description
🧠 memx-sdk
A Python client for memX — a real-time shared memory layer for multi-agent LLM systems.
Built for fast, schema-validated coordination between autonomous agents. Supports JSON key/value operations, schema enforcement, and pub/sub via WebSocket.
🚀 Features
- 🔑 Authenticate via API keys
- 📥 Get/set JSON values by key
- 📐 Define and validate key schemas
- 🔄 Real-time memory sync via WebSocket
- 🔔 Pub/sub for key-level updates
📦 Installation
pip install memx-sdk
🧪 Usage Example
Log in to dashboard and create api keys with relevent scopes.
from memx_sdk import Client
client = Client(api_key="your-api-key")
# Define schema
client.set_schema("agent:goal", {
"type": "object",
"properties": { "x": { "type": "number" }, "y": { "type": "number" } },
"required": ["x", "y"]
})
# Set a value
client.set("agent:goal", {"x": 3, "y": 5})
# Get a value
value = client.get("agent:goal")
print(value)
# Subscribe to updates
def on_update(data):
print("Updated:", data)
client.subscribe("agent:goal", callback=on_update)
🛠️ Requirements
- Python 3.7+
- httpx
- websockets
📄 License
MIT
🧠 Learn More
- Dashboard: https://mem-x.vercel.app
- Project: memX README
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 memx_sdk-0.1.0.tar.gz.
File metadata
- Download URL: memx_sdk-0.1.0.tar.gz
- Upload date:
- Size: 11.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c3ba1421b9cdbb86f314a722fe489f83201ee1f407d401f414411548172a0184
|
|
| MD5 |
1e3f70af9e2a900c5d0cdaad6936f7d6
|
|
| BLAKE2b-256 |
597bf4dd2e11811dc49f55bd0feca29d97ff885065cdb16624d84c449d9a16b1
|
File details
Details for the file memx_sdk-0.1.0-py3-none-any.whl.
File metadata
- Download URL: memx_sdk-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c851327dfc06b8197907869d7d76f9c31f481853cea1d9a79edfbc9ad297a25a
|
|
| MD5 |
0001c14f8fe2994ac8a8de95b2af3400
|
|
| BLAKE2b-256 |
0c84884f9ebd7c9e05399f13ba89613f11c177f562a4d9f5a8669bb19e4ef688
|