Skip to main content

ReachPy 🚀

ReachPy is a modern Python framework built to dramatically improve the Developer Experience (DX) for robotics engineers using ROS 2.

Building robotics applications in ROS 2 shouldn't mean wrestling with boilerplate, complex build pipelines, or rigid message compilation. ReachPy aims to provide a more Pythonic, intuitive, and dynamic interface to the ROS 2 ecosystem, letting you focus on writing robot logic rather than fighting the middleware.

✨ Why ReachPy?

While rclpy provides the standard bindings for ROS 2, the workflow often requires dropping down to C++ build tools (colcon, CMake) just to define custom data structures. ReachPy is being built to bridge this gap, offering dynamic runtime features powered by a high-performance Rust backend.

📦 Core Components

Dynamic Messaging (reachpy_messages)

At the core of ReachPy is our custom message serialization engine, written in Rust (via PyO3).

Instead of writing .msg files, recompiling your workspace, and sourcing environments just to add a new field to a message, reachpy_messages allows you to define, serialize, and deserialize native ROS 2 Common Data Representation (CDR) bytes on the fly.

  • Dynamic Schema Registry: Register complex nested types, arrays, and primitives entirely at runtime.
  • Native CDR Support: Outputs perfectly aligned Little-Endian bytes that are 100% compatible with standard ROS 2 nodes.
  • Blazing Fast: Offloads the heavy lifting of byte-packing to Rust, ensuring your Python nodes stay performant.

🚀 Quick Start (Preview)

Note: ReachPy is currently in active development.

import reachpy
from reachpy.messages import MessageSchema, FieldSchema, FieldType

# 1. Define a ROS 2 compatible message entirely in Python
schema = MessageSchema(
    name="RobotWaypoint",
    fields=[
        FieldSchema("x", FieldType.Float64),
        FieldSchema("y", FieldType.Float64),
        FieldSchema("is_active", FieldType.Bool)
    ]
)

# 2. Register it dynamically (no CMake or colcon build required!)
reachpy.messages.register_schema("RobotWaypoint", schema)

# 3. Serialize directly to ROS 2 CDR bytes to send over the wire
cdr_payload = reachpy.messages.serialize("RobotWaypoint", [15.2, -7.8, True])

🛠️ Building from Source

ReachPy uses Rust for its performance-critical extensions. You will need Rust and Python 3.8+ installed.

# Build and install the Rust extension locally
maturin develop --release

Metadata

Release files for reachpy 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for reachpy 0.1.0
File Size Uploaded Provenance Actions
reachpy-0.1.0.tar.gz 8.6 kB Without provenance Details for reachpy-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for reachpy 0.1.0
File Interpreter ABI Platform Actions
reachpy-0.1.0-cp311-cp311-manylinux_2_31_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.31+ x86-64 Details for reachpy-0.1.0-cp311-cp311-manylinux_2_31_x86_64.whl

Total release size: 289.4 kB

Release files / reachpy-0.1.0.tar.gz

Download URL reachpy-0.1.0.tar.gz
Size 8.6 kB
Tags Source
SHA-256 checksum
How to use checksums
4ab32e695fe4a6917648fd809e475051fe7d3b7efd118c395f66efdc40268a1f
BLAKE2b-256 checksum
How to use checksums
bb1402074298ff7ca5b6a81a017a46db17c43e07672f6f6fd0cdf9b971273cc4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.4

Release files / reachpy-0.1.0-cp311-cp311-manylinux_2_31_x86_64.whl

Download URL reachpy-0.1.0-cp311-cp311-manylinux_2_31_x86_64.whl
Size 280.8 kB
Tags CPython 3.11 Linux glibc 2.31+ x86-64
SHA-256 checksum
How to use checksums
c49c0eb578635b117e7249120731f747bd0680eb1681bed5ebcf668a53d93961
BLAKE2b-256 checksum
How to use checksums
9bbcdc17cd8fbfb4e59a6929f77146a6282ebc030839f44ddb6b3e5f9f01fa9f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.4

Security for reachpy 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page