pySerial is a Python module that encapsulates the access for the serial port. It provides backends for different platforms and Python implementations.