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.2.0.tar.gz
(8.8 kB
view details)
Built Distribution
uliserial-0.2.0-py3-none-any.whl
(10.1 kB
view details)
File details
Details for the file uliserial-0.2.0.tar.gz
.
File metadata
- Download URL: uliserial-0.2.0.tar.gz
- Upload date:
- Size: 8.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.10.12 Linux/5.15.0-89-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07471c31432aff6389b227579e51a3b0d3ca51cb68b330a937b4237abcea9479 |
|
MD5 | 6333202b9249e46e73ff0c2e2cd468d0 |
|
BLAKE2b-256 | 717a3c40ba279476c97ba6d5f543a2e6d6378daaab2e5a05fa66355ae4175524 |
File details
Details for the file uliserial-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: uliserial-0.2.0-py3-none-any.whl
- Upload date:
- Size: 10.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.10.12 Linux/5.15.0-89-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eaf4c0859e52c79997a07b296d86c566edfd0b47e90d33e18a5072e6134d9294 |
|
MD5 | 25392190957c9044360e2b3e341ed35f |
|
BLAKE2b-256 | 5f3ffd8b771cf48f9d93b95ba70d6d378576f92279e4f1b053dab67caa604747 |