Skip to main content

No project description provided

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 crate written for 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.2.tar.gz (11.6 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.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (608.8 kB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.17+ x86-64

File details

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

File metadata

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

File hashes

Hashes for py_serial_rs-0.1.2.tar.gz
Algorithm Hash digest
SHA256 6d27de729dc159c3fc237cc1f5b343caf50d611785afcac45e2cf94db5cea2d0
MD5 8e8483dcbe57ef444536605d9c9cbee8
BLAKE2b-256 f4251fcf7d7300821662028b272a35a0e4785b753ab2937d0d7ab782daa08dcf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for py_serial_rs-0.1.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1b2299214c7dfd72a38e427433212e53f4487a9a6736d0ac7fd1869bf1268616
MD5 41f33a868677eaa241abb75b35e02109
BLAKE2b-256 eba9fab10ba9c0c14e35526ebbd28b2c0925ff11b275e4110e1431304e8784ae

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