MicroWebSrv

screenshot of 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

Summary:

MicroWebSrv is a lightweight and efficient micro HTTP Web server designed for use with MicroPython on devices like ESP32 and Pycom modules. It offers support for WebSockets, html/python language templating, and routing handlers. With its easy integration and powerful features, MicroWebSrv allows users to create embedded REST APIs, serve files on the fly, and interact with Web applications. Its ability to handle HTTP methods, provide routing options, and support AJAX and WebSockets make it a versatile solution for developers.