Skip to main content

Accelerated communication library using Zenoh for robotics and AI

Project description

DexComm - High-Performance Communication Library

High-efficiency pub/sub and RPC for robotics and AI. Zero configuration required.

Installation

System Dependencies

Linux (Ubuntu/Debian):

sudo apt-get update
sudo apt-get install ffmpeg libjpeg-turbo8 -y

macOS:

brew install ffmpeg libjpeg-turbo

Install

pip install dexcomm

Platform Support

  • Python: 3.10+
  • Linux: x86_64, aarch64
  • macOS: x86_64, arm64 (Apple Silicon)

Quick Start

Raw API (Simplest)

from dexcomm import Publisher, Subscriber
from dexcomm.codecs import PickleDataCodec

# Publisher
pub = Publisher("sensor/temperature", encoder=PickleDataCodec.encode)
pub.publish({"value": 25.5, "unit": "celsius"})

# Subscriber
sub = Subscriber("sensor/temperature",
                 decoder=PickleDataCodec.decode,
                 callback=lambda msg: print(f"Received: {msg}"))

Node Pattern (ROS-like)

from dexcomm import Node
from dexcomm.codecs import PickleDataCodec

class RobotController:
    def __init__(self):
        self.node = Node("controller", namespace="robot1")
        self.cmd_pub = self.node.create_publisher("cmd_vel", encoder=PickleDataCodec.encode)
        self.node.create_subscriber("odometry", self.on_odometry, decoder=PickleDataCodec.decode)

    def on_odometry(self, msg):
        self.cmd_pub.publish({"linear": 0.5, "angular": 0.0})

robot = RobotController()
input("Press Enter to stop...\n")

Manager Pattern (Dynamic Topics)

from dexcomm import SubscriberManager
from dexcomm.codecs import PickleDataCodec

manager = SubscriberManager()

# Add/remove topics at runtime
manager.add("sensors/lidar", callback=lambda msg: print(msg), decoder=PickleDataCodec.decode)
manager.add("sensors/imu", callback=lambda msg: print(msg), decoder=PickleDataCodec.decode)
manager.remove("sensors/lidar")

Services (RPC)

from dexcomm import Service, ServiceClient
from dexcomm.codecs import PickleDataCodec

# Server
service = Service("math/add",
                  lambda req: {"sum": req["a"] + req["b"]},
                  request_decoder=PickleDataCodec.decode,
                  response_encoder=PickleDataCodec.encode)

# Client
client = ServiceClient("math/add",
                       request_encoder=PickleDataCodec.encode,
                       response_decoder=PickleDataCodec.decode)
result = client.call({"a": 5, "b": 3})
print(result)  # {"sum": 8}

License

AGPL-3.0 - see the LICENSE file for details.

Copyright (c) 2026 Dexmate. All rights reserved.

For licensing inquiries: contact@dexmate.ai

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

dexcomm-0.4.3-cp310-abi3-win_amd64.whl (4.3 MB view details)

Uploaded CPython 3.10+Windows x86-64

dexcomm-0.4.3-cp310-abi3-manylinux_2_34_x86_64.whl (4.7 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.34+ x86-64

dexcomm-0.4.3-cp310-abi3-manylinux_2_34_aarch64.whl (4.5 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.34+ ARM64

dexcomm-0.4.3-cp310-abi3-macosx_11_0_arm64.whl (4.1 MB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

File details

Details for the file dexcomm-0.4.3-cp310-abi3-win_amd64.whl.

File metadata

  • Download URL: dexcomm-0.4.3-cp310-abi3-win_amd64.whl
  • Upload date:
  • Size: 4.3 MB
  • Tags: CPython 3.10+, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for dexcomm-0.4.3-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 dca658ecc3ebb51224733746ed4e06cefa72b8b2765ea003d0099af92dfbe5e0
MD5 82eb0e4a350ba867291a0025cc670de7
BLAKE2b-256 7555e1f673ea5e8ee8a13c435069ea4c5d20a021b591c94b287bf9ec1a55c1f2

See more details on using hashes here.

File details

Details for the file dexcomm-0.4.3-cp310-abi3-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for dexcomm-0.4.3-cp310-abi3-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 97b30657a2b3f50395e13228371de30dfcd9d754d762dc455c26e098104896d2
MD5 30a3ba1f7d685df2a01a63394dcb3642
BLAKE2b-256 c93ace3cb53ae46057c6c255452735a5732ac5dedb3e4ed8f2c27c51b8f3a8c1

See more details on using hashes here.

File details

Details for the file dexcomm-0.4.3-cp310-abi3-manylinux_2_34_aarch64.whl.

File metadata

File hashes

Hashes for dexcomm-0.4.3-cp310-abi3-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 d141d81a72c9bd3688b29a4864daebad1e89c9ea2cf39b0d9db160cbec68b3d5
MD5 2ffd34b0d55d7782c02914def9652764
BLAKE2b-256 2e1406bc9dfcfedcc6462aa527db890772c33f5bddc85194d29cd6e1f9bccb32

See more details on using hashes here.

File details

Details for the file dexcomm-0.4.3-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for dexcomm-0.4.3-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d8250c9bc91651788023fcbc4a0d9406402ea63e2768afbd04819caa6ad2d753
MD5 d445dcab346a9a6ca48a7b0e76649a92
BLAKE2b-256 36e1500e4a6fa37e39facead6a7685b70e43a10c04e0732e4808dd4e2c8c0e5a

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