Skip to main content

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


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.0.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

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

nmdb_py-0.1.0-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file nmdb_py-0.1.0.tar.gz.

File metadata

  • Download URL: nmdb_py-0.1.0.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

Hashes for nmdb_py-0.1.0.tar.gz
Algorithm Hash digest
SHA256 be3a869b99c6c334de7b177dfcd83c7399d716e0157e3d07791c167e51e5394a
MD5 be614be125fc38e606f04ff0a2d8f038
BLAKE2b-256 6ea67379ef95ab2ba526da769e3be8dc2ea2454d1bc7ef47b523229ff445da62

See more details on using hashes here.

File details

Details for the file nmdb_py-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: nmdb_py-0.1.0-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

Hashes for nmdb_py-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8c8a669b2de706f5779f2d1b91fe742b6d37ef9fe0aba60bb9fa1f3fef392e15
MD5 6e9047ed26306a9c036ecab6ca8692ed
BLAKE2b-256 5a9659b2ea18862aa7d2a92d04432e3d27cbc99c9581774dd2838c338dd0fec0

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