Skip to main content

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

memx_sdk-0.1.1.tar.gz (11.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

memx_sdk-0.1.1-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file memx_sdk-0.1.1.tar.gz.

File metadata

  • Download URL: memx_sdk-0.1.1.tar.gz
  • Upload date:
  • Size: 11.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for memx_sdk-0.1.1.tar.gz
Algorithm Hash digest
SHA256 4a8b929e7b518ab0d068686bd7e388b093ce3144504442d31610a74df842fe46
MD5 2dfd8b78f43d85a98c0a01bb11be5c95
BLAKE2b-256 a3e036c7cad07ec73981faed2f9850569b2b32aece86c624a58b2c5630d6e778

See more details on using hashes here.

File details

Details for the file memx_sdk-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: memx_sdk-0.1.1-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

Hashes for memx_sdk-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d1dfbebcce09f893e3b7643cb3ed4d439be3f5c87489ce16870fce97674214c2
MD5 a5bbd50e9bd3da3928bb491b75baf779
BLAKE2b-256 2197cde434fa8d3716c48ef79a75df9af515aebefea846718a15475239406f53

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page