MicroWebSrv

screenshot of MicroWebSrv

MicroWebSrv

A micro HTTP Web server that supports WebSockets, html/python language templating and routing handlers, for MicroPython (used on Pycom modules & ESP32)

Overview:

MicroWebSrv is a micro HTTP Web server that supports WebSockets, html/python language templating, and routing handlers. It is primarily used on ESP32 and Pycom modules, but now supports all variants of Pyboard D-series from the makers of MicroPython. The server is easy to integrate and lightweight, consisting of only three files: "microWebSrv.py" for the Web server, "microWebSocket.py" for optional WebSocket support, and "microWebTemplate.py" for optional templating language for .pyhtml rendered pages.

Features:

  • Handles GET, POST, and other requests to interact with users and configure options
  • Supports exchanging data in JSON format on HTTP methods for embedding a full REST API
  • Enables serving files on the fly to export any data to users
  • Supports routes and variable route handlers for easy navigation and customization
  • Allows interaction with Web applications using AJAX for fast and efficient communication
  • Can be used as a captive portal for creating a controlled access point
  • Supports WebSockets for fast and powerful data exchange
  • Enhances rendering of web pages through the use of html/python files