Premium Python SDK for Superbrain Distributed Memory Fabric
Project description
Superbrain Python SDK
Superbrain is a high-performance, distributed RAM fabric designed specifically for AI agents. It allows agents to share gigabytes of context and data at microsecond speeds using a Zero-Blob Architecture.
Instead of passing massive data blobs over JSON or gRPC, agents pass 36-byte memory pointers, allowing multiple agents to read from the same distributed RAM pool without network overhead.
🚀 Key Features
- Zero-Blob Architecture: Pass data by pointer, not by value.
- Microsecond Latency: Distributed RAM speeds for inter-agent communication.
- Secure Fabric: Enterprise-grade mTLS identity and AES-GCM-256 end-to-end encryption.
- Natively Fast: Powered by a high-performance C-bridge.
🛠️ Installation
pip install superbrain-sdk
[!IMPORTANT] This SDK requires the
libsuperbrainshared library. Download it from the GitHub Releases and ensure it's in yourLD_LIBRARY_PATHorDYLD_LIBRARY_PATH.
💻 Quick Start (Python)
from superbrain import Client
# 1. Initialize the client
client = Client('localhost:50050')
# 2. Allocate a 10MB memory segment
ptr_id = client.allocate(10 * 1024 * 1024)
print(f"Allocated pointer: {ptr_id}")
# 3. Write data to the fabric
data = b"Hello from Python Agent!"
client.write(ptr_id, 0, data)
# 4. Read data back (or from another agent)
read_data = client.read(ptr_id, 0, len(data))
print(f"Read: {read_data.decode('utf-8')}")
# 5. Free memory
client.free(ptr_id)
🔒 Secure Fabric (E2EE)
encryption_key = b"your-32-byte-aes-encryption-key-"
client = Client('localhost:60050', encryption_key=encryption_key)
# Data is now automatically encrypted before leaving the agent!
📄 Documentation
For full API reference, visit the Comprehensive Consumption Guide.
⚖️ License
MIT License. See LICENSE for more details.
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 superbrain_sdk-0.1.1.tar.gz.
File metadata
- Download URL: superbrain_sdk-0.1.1.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
90f5b4c805701bf3c21de89dbb8854bcbc3a13ea550ae0aca2a855d19d4de532
|
|
| MD5 |
63b8bcce444b2c7eebfed0bf5c361222
|
|
| BLAKE2b-256 |
0b05f90c64d39d9588ebeac7a14b7620e1771271cf2438cbf119c7a72ab21de8
|
File details
Details for the file superbrain_sdk-0.1.1-py3-none-any.whl.
File metadata
- Download URL: superbrain_sdk-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2dff6ade7553d59447b92cbced42e9292146a027e597d0754bccb1f4e4b7248c
|
|
| MD5 |
1e7ec8bd99fae03bf6bd6426ddf1e2fd
|
|
| BLAKE2b-256 |
9e9a5d1615276e1551b2e816cadb6b368c1a6f946a154217dd817875d139a029
|