The library provides a simple and easy-to-use interface for establishing serial communication and also provides various options for configuring the communication parameters like baud rate, parity, stop bits, etc. Python serial library is used for establishing serial communication between the computer and various external devices like microcontrollers, GPS modules, sensors, etc.