serial_device_python
This Python package (serial_device2) creates a class named SerialDevice, which inherits from serial.Serial and adds methods to it, like auto discovery of available serial ports in Linux, Windows, and Mac OS X. The SerialDevice class can be used by itself, but it is mostly intended to be a base class for other serial port devices with higher level functions.
Authors:
Peter Polidoro <polidorop@janelia.hhmi.org>
License:
BSD
Example Usage:
from serial_device2 import SerialDevice, find_serial_device_ports find_serial_device_ports() # Returns list of available serial ports dev = SerialDevice() # Might automatically find device if one available # if it is not found automatically, specify port directly dev = SerialDevice(port='/dev/ttyUSB0') # Linux dev = SerialDevice(port='/dev/tty.usbmodem262471') # Mac OS X dev = SerialDevice(port='COM3') # Windows dev.get_device_info() from serial_device2 import SerialDevices devs = SerialDevices() # Might automatically find all available devices # if they are not found automatically, specify ports to use devs = SerialDevices(use_ports=['/dev/ttyUSB0','/dev/ttyUSB1']) # Linux devs = SerialDevices(use_ports=['/dev/tty.usbmodem262471','/dev/tty.usbmodem262472']) # Mac OS X devs = SerialDevices(use_ports=['COM3','COM4']) # Windows devs.get_devices_info() devs.sort_by_port() dev = devs[0] dev.get_device_info()
Metadata
Release files for serial_device2 2.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| serial_device2-2.0.2.tar.gz | 8.2 kB | Without provenance | Details |
Release files / serial_device2-2.0.2.tar.gz
| Download URL | serial_device2-2.0.2.tar.gz |
|---|---|
| Size | 8.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
df532af3c066dda07d1d7a46438b3decead2e965b2f12b6ff3ce84c887fe55d7
|
|
BLAKE2b-256 checksum How to use checksums |
e16b26f2386955d314383b559a0d4f8c69e7d872be9499f87ee26b5cbb4b09c2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for serial_device2 2.0.2
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.