Skip to main content

R2D2

"Rust Reliable Device Drivers"

r2d2-pal (R2D2 Protocol Abstraction Layer) is a module to define Rust bindings for Python of the linux_embedded_hal crate.

Installation

pip install -U r2d2-pal

Usage

Serial example:

import r2d2

bus = r2d2.SerialBus(
    port_name=port_name,
    baud_rate=baud_rate,
    byte_size=byte_size,
    parity=str(parity),
    stop_bits=stop_bits,
)

bus.write(b"Hello, World!")
data = bus.read(13, 10.0)

Release files for r2d2-pal 0.1.11

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

Source distribution (sdist)

Source distribution for r2d2-pal 0.1.11
File Size Uploaded
r2d2_pal-0.1.11.tar.gz 9.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for r2d2-pal 0.1.11
File Interpreter ABI Platform
r2d2_pal-0.1.11-cp38-abi3-manylinux_2_34_x86_64.whl CPython 3.8 abi3 Linux glibc 2.34+ x86-64 Details

Total release size: 297.1 kB

Release files / r2d2_pal-0.1.11.tar.gz

Download URL r2d2_pal-0.1.11.tar.gz
Size 9.1 kB
Tags Source
SHA-256 checksum
How to use checksums
e8467784a2085af4eacfd153ed6d1215acb5f722bfb9958df8c5d0e87be5bf8d
BLAKE2b-256 checksum
How to use checksums
1bf3d5f575961089d8b7ecae93b0fcf43d3e45fd4b3d8d5663a3467943b7c8c0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.7.4

Release files / r2d2_pal-0.1.11-cp38-abi3-manylinux_2_34_x86_64.whl

Download URL r2d2_pal-0.1.11-cp38-abi3-manylinux_2_34_x86_64.whl
Size 288.0 kB
Tags CPython 3.8 Linux glibc 2.34+ x86-64 abi3
SHA-256 checksum
How to use checksums
31431a95ff16741de74ed518e0d986fc66bf7022efd1f11dd715a1b857c8cadb
BLAKE2b-256 checksum
How to use checksums
ac6ceb076940fcb30710a64fc89f1cb8dce3dcc5677cbb5c1d20c4dc72a27546
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.7.4

Release history Release notifications | RSS feed

This release

0.1.11 This release

2 release files

0.1.10

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

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