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}

Remote Robot Connection

Connect directly to a remote robot with a single environment variable:

# Port defaults to 7447 if omitted:
export ROBOT_IP=192.168.50.20
# Or with explicit port:
export ROBOT_IP=192.168.50.20:7447

When ROBOT_IP is set, dexcomm switches to client mode and connects directly to the specified address. Port 7447 is used by default if not specified.

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.19-cp310-abi3-win_amd64.whl (4.4 MB view details)

Uploaded CPython 3.10+Windows x86-64

dexcomm-0.4.19-cp310-abi3-manylinux_2_34_x86_64.whl (4.8 MB view details)

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

dexcomm-0.4.19-cp310-abi3-manylinux_2_34_aarch64.whl (4.6 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.34+ ARM64

dexcomm-0.4.19-cp310-abi3-macosx_11_0_arm64.whl (4.2 MB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: dexcomm-0.4.19-cp310-abi3-win_amd64.whl
  • Upload date:
  • Size: 4.4 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.19-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 24f2f1375fb83636bdd3c162b499e1e664d5fdd51e285425807da6b688795ea7
MD5 d7cc1155fcbbd33a103cf1dfa84c80c0
BLAKE2b-256 e5d39227c27a05c8238f5b79dd5d3d305702e1bd25226efc3e873f8e3ae6c4ea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dexcomm-0.4.19-cp310-abi3-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 9bf6186778887e86f53c83f3c3fece539256faf20ed149b64aea39bcf44135ac
MD5 966e555996786e6b7d0184d3a311992d
BLAKE2b-256 15e28a522fbc033c411a2c676409873654e47abbb519263e08a9c5e40cdce862

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dexcomm-0.4.19-cp310-abi3-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 eae8f41924ac0547752f388a9816f7b6d54c8b9b8ba4d74641d16b4f074ebc72
MD5 a49c9023b2dc25ad1f0125d011dc7324
BLAKE2b-256 16d93dd3cbcaf04654917b5f305e9c5bd282c39c1ab0c35ce2203fee426172d6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dexcomm-0.4.19-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e6b3683a71d90a1462e775181f90ca4d17020135ad06a53e9ec03e502f0c3129
MD5 7259a7ff9eb5cfaa295a52d17d7597cc
BLAKE2b-256 69f1800810a28fc30dbf600c181ea2fddd29d5b347caba09160c9317be848ecb

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