Python client library for Neural Message Data Bus (NMDB)
Project description
NMDB Python Client
Python client library for the Neural Message Data Bus (NMDB).
Installation
pip install nmdb-py
Or install from source:
cd clients/python
pip install -e .
Quick Start
from nmdb import NMDBClient
# Connect to channel
client = NMDBClient("/tmp/nmdb/c1.sock")
client.connect()
# Send text message
client.send_text("Hello, NMDB!")
# Set message callback
def on_message(data: bytes):
print(f"Received: {data.decode('utf-8')}")
client.set_message_callback(on_message)
# Keep running
import time
time.sleep(10)
# Disconnect
client.disconnect()
Context Manager
from nmdb import NMDBClient
with NMDBClient("/tmp/nmdb/c1.sock") as client:
client.send_text("Hello, NMDB!")
# Auto-disconnect on exit
License
MIT License - see LICENSE for 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
nmdb_py-0.1.1.tar.gz
(7.4 kB
view details)
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 nmdb_py-0.1.1.tar.gz.
File metadata
- Download URL: nmdb_py-0.1.1.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b46022c86d006b983b720fdee4ed1770f12c91fae95ad9976bb36c239436867d
|
|
| MD5 |
04c09d3a3a3d4033cb108c3b12eb43e0
|
|
| BLAKE2b-256 |
79660690cb4d1b4ed2e3f88aeeee69272b81ba4716eba44f9bb987967b9b771e
|
File details
Details for the file nmdb_py-0.1.1-py3-none-any.whl.
File metadata
- Download URL: nmdb_py-0.1.1-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d6e4e256cb2f69033e790375c620fe7852ae8d29b248930c7d5cd5ced109081d
|
|
| MD5 |
3b9ee626e801ceeb24be1d56e40857a8
|
|
| BLAKE2b-256 |
bc9afb68c22252e8ac7bbe0c1967e6a30eef1e1ce123ce9a72d8eabf4d7ffe70
|