Binary package “python3-portio” in ubuntu noble
PortIO, Python low level port I/O for Linux x86
PortIO is a Python front end to the low level functions provided by
the C library on Linux 386 platforms for the hardware input and output
ports: outb, outw, outl, outsb, outsw, outsl, outb_p, outw_p, outl_p,
inb, inw, inl, insb, insw, insl, inb_p, inw_p, inl_p, ioperm, iopl.