Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

75.1. python3-pyserial-3.5

Serial port access from Python

3.5-1 · BSD-3-Clause · 0.1 SBU · 705.3 KiB, 67 files · 40_lang, 74 of 186 · ports/core/python-hw/python3-pyserial

Homepage: https://github.com/pyserial/pyserial

pySerial gives Python access to serial ports: serial.Serial for a port, and the pyserial-miniterm and pyserial-ports commands. It is pure Python with no dependencies. On KDOS a USB serial adapter is reached through the dialout group and the tree’s udev rules; see The device groups and the udev rules. python3-esptool, python3-obd, python3-meshtastic, printrun and the other ports that talk to hardware over a serial line import it.

Depends on: python3, python3-setuptools, python3-pip.

Required by (12): bcnc, chirp, cura, inkscape, printrun, python3-adafruit-nrfutil, python3-esptool, python3-meshtastic, python3-obd, python3-pyvisa-py, python3-rns, sideband.

Sources: python3-pyserial-3.5.tar.gz (155.4 KiB). Every step kpkg takes applies to this port.

Install: script/chroot/exec.sh bash -c 'source script/phases/40_lang/phase.env && kpkg install python3-pyserial'

build.sh:

pip3 install --ignore-installed --no-deps --no-index --no-build-isolation --root=$PKG --prefix=/usr .

Programs: pyserial-miniterm, pyserial-ports.

Directories: /usr/lib/python3.14/site-packages/pyserial-3.5.dist-info, /usr/lib/python3.14/site-packages/serial, /usr/share/licenses/python3-pyserial.