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.5.tar.gz (915.9 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.5-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (609.1 kB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.17+ x86-64

File details

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

File metadata

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

File hashes

Hashes for py_serial_rs-0.1.5.tar.gz
Algorithm Hash digest
SHA256 32e2e7bf20e34edc76fc759915eda28353d4322ac69164e7256ee642d66eaba0
MD5 e904952bedede3114aed6859f9581980
BLAKE2b-256 22b2da6d58d49cf357359bfdce1f9de102adf81bd94f04c5b5d31d3391f35013

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for py_serial_rs-0.1.5-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ad373631459073e04bf3b188be8c163ad7d12ffac24fa4e10b5883e62b385fbf
MD5 6f434184ab08cd2dec32a409d25984e0
BLAKE2b-256 778de1f7f6058322a1cf6e0f2da83e2bbd945e6a6179072afc6fef4872c5f5b1

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