While teaching and giving hands-on workshops, it is not always easy to install and prepare esptool.py on some computers to flash MicroPython. So, we have adapted esp-web-tools (https://github.com/esphome/esp-web-tools) to flash MicroPython 1.7 on ESP32 and ESP8266 at the click of a web browser button (literally!).
Just connect your ESP32 or ESP8266 to the USB port and access:
Click Connect & Install, and have MicroPython running!
Hope it is useful for you.
Congratulations and thank you to esphome developers. esp-web-tools work smoothly great!