A tutorial on how to make an ESP and a Python script (running on PC or a RPi) communicate via Serial and do useful stuff while communicating
Why do you think that https://github.com/madhephaestus/ESP32Encoder is a good alternative to ESP_Python_Serial