Serial port utilities to save time with your electronics projects
Project description
UliSerial
Serial port utilities to save time with your electronics project
Installation
pip install UliSerial
Example usage
This code finds & opens a specific serial port using pyserial
.
If no port, or multiple ports are found, NoSuchSerialPortException
or MultipleSerialPortsException
is raised (both subclasses of UliSerialException
).
from UliSerial.Find import *
import serial
port = find_serial_port(product="Marlin USB Device", serial_number="01010A23535223934CF29A1EF5000007")
# port is now e.g. '/dev/ttyACM0'
# Open the port
ser = serial.Serial(port, 115200, timeout=1)
License
See LICENSE file.
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
uliserial-0.1.2.tar.gz
(6.5 kB
view hashes)
Built Distribution
Close
Hashes for uliserial-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 43d42f93236f71c16d1159e96e977d8ff944d7624a8e83560ce44ff083d6ea38 |
|
MD5 | 5f8c003d83a86710a520e75c777dbb87 |
|
BLAKE2b-256 | 2b7892eb07e50129973a708a9fa87ea1732de2da5284bc1c0ea63072015e9c72 |