https://microdot.readthedocs.io/en/latest/index.html Microdot Navigation * Installation * Getting Started * Core Extensions * API Reference Related Topics * Documentation overview + Next: Installation Quick search [ ] [Go] MicrodotP "The impossibly small web framework for Python and MicroPython" Microdot is a minimalistic Python web framework inspired by Flask, and designed to run on systems with limited resources such as microcontrollers. It runs on standard Python and on MicroPython. * Installation * Getting Started + A Simple Microdot Web Server + Running with CPython + Running with MicroPython + Defining Routes o Choosing the HTTP Method o Including Dynamic Components in the URL Path o Before and After Request Handlers o Error Handlers o Mounting a Sub-Application o Shutting Down the Server + The Request Object o Request Attributes o JSON Payloads o URLEncoded Form Data o Accessing the Raw Request Body o Cookies o The "g" Object o Request-Specific After Request Handlers o Request Limits + Responses o The Three Parts of a Response o JSON Responses o Redirects o File Responses o Streaming Responses o Changing the Default Response Content Type o Setting Cookies + Concurrency * Core Extensions + Asynchronous Support with Asyncio + Rendering HTML Templates o Using the uTemplate Engine o Using the Jinja Engine + Maintaining Secure User Sessions + Cross-Origin Resource Sharing (CORS) + WebSocket Support + Asynchronous WebSocket + HTTPS Support + Test Client + Asynchronous Test Client + Deploying on a Production Web Server o Using a WSGI Web Server o Using an ASGI Web Server * API Reference + microdot module o Microdot o Request o Response o NoCaseDict o MultiDict + microdot_asyncio module o Microdot o Request o Response + microdot_utemplate module o init_templates() o render_template() + microdot_jinja module o init_templates() o render_template() + microdot_session module + microdot_cors module o CORS + microdot_websocket module o websocket_upgrade() o with_websocket() + microdot_asyncio_websocket module o websocket_upgrade() o with_websocket() + microdot_asgi_websocket module o websocket_upgrade() o with_websocket() + microdot_ssl module o create_ssl_context() + microdot_test_client module o TestClient o TestResponse + microdot_asyncio_test_client module o TestClient o TestResponse + microdot_wsgi module o Microdot + microdot_asgi module o Microdot * Index * Search Page (c)2021, Miguel Grinberg. | Powered by Sphinx 7.2.6 & Alabaster 0.7.13 | Page source Fork me on GitHub