Skip to main content

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 hashes)

Uploaded Source

Built Distribution

uliserial-0.2.0-py3-none-any.whl (10.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page