Skip to main content

Read and write data over the serial ports

Project description

The goal of this package is to provide a fast and reliable interface to the serial ports.

Instead of implementing the logic in Python, this package builds around serialport written in Rust. This package supports threading.

Installation

PyO3 (with maturin) will build a pip package for you. For this, make sure that you are able to build rust packages with cargo. Create a virtual environment and install the required pip packages with

pip install -r requirements.txt

The pip package can then easily be build with

maturin build --release

Voilà, a pip package to be used in your code!

Demo Scripts

Demo scripts are located in /python:

  • demo.py shows a simple direct communication via the serial connection

  • demo_threads.py demonstrates how this package can be used with threads

Documentation

Link to the documentation: https://py-serial-rs.readthedocs.io/

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

py_serial_rs-0.1.6.tar.gz (13.2 kB view details)

Uploaded Source

Built Distribution

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

py_serial_rs-0.1.6-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (639.3 kB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.17+ x86-64

File details

Details for the file py_serial_rs-0.1.6.tar.gz.

File metadata

  • Download URL: py_serial_rs-0.1.6.tar.gz
  • Upload date:
  • Size: 13.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.3.0

File hashes

Hashes for py_serial_rs-0.1.6.tar.gz
Algorithm Hash digest
SHA256 1a796553e131b8da0df2e806cdc91472fddbf85a663520094082a6fb598a0504
MD5 a4986c90586b003864aa77c6b2c9187f
BLAKE2b-256 64291f9850d18dcd6075982a1550416d892e401c0c748c1670547cc52015f8f7

See more details on using hashes here.

File details

Details for the file py_serial_rs-0.1.6-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for py_serial_rs-0.1.6-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 11910cd2d78e52e6d6cd1af323f4d2ba07fe4de3b7e64906c2ae41054432677f
MD5 ec8277ff753d0ed261930fcb68e1815b
BLAKE2b-256 fbcfc4aba194ce71d10d150f5fc3144c2ae0558bb9b111b060ee8723ac03389f

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