- Python 99.3%
- Shell 0.5%
- Dockerfile 0.2%
|
All checks were successful
build / tests-3.11 (push) Successful in 59s
build / tests-3.10 (push) Successful in 1m11s
build / tests-3.12 (push) Successful in 1m5s
build / lint (push) Successful in 1m49s
build / tests-3.13 (push) Successful in 1m7s
build / tests-3.14 (push) Successful in 1m9s
build / tests-3.14t (push) Successful in 1m21s
build / tests-micropython (push) Successful in 59s
build / tests-circuitpython (push) Successful in 54s
build / tests-pypy3.11 (push) Successful in 1m54s
build / benchmark (push) Successful in 1m32s
|
||
|---|---|---|
| .forgejo/workflows | ||
| bin | ||
| docs | ||
| examples | ||
| libs | ||
| src/microdot | ||
| tests | ||
| tools | ||
| typings | ||
| .gitattributes | ||
| .gitignore | ||
| .readthedocs.yaml | ||
| CHANGES.md | ||
| CODE_OF_CONDUCT.md | ||
| CONTRIBUTING.md | ||
| LICENSE | ||
| MANIFEST.in | ||
| pyproject.toml | ||
| README.md | ||
| run_tests.py | ||
| SECURITY.md | ||
| tox.ini | ||
Microdot
“The impossibly small web framework for Python and MicroPython”
Microdot is a minimalistic Python web framework inspired by Flask. Given its small size, it can run on systems with limited resources such as microcontrollers. Both standard Python (CPython) and MicroPython are supported.
from microdot import Microdot
app = Microdot()
@app.route('/')
async def index(request):
return 'Hello, world!'
app.run()
Resources
The following links are for legacy version 1 of Microdot:
Note that version 1 is no longer maintained, so you should consider migrating to version 2. See the migration notes for help.
Roadmap
The following features are planned for future releases of Microdot, both for MicroPython and CPython:
- Authentication support, similar to Flask-Login for Flask (Added in version 2.1)
- Support for forms encoded in
multipart/form-dataformat (Added in version 2.2) - CSRF protection extension (Added in version 2.5)
- Type hints (Added in version 2.6)
- Pub/sub mini-framework for WebSocket and SSE
- OpenAPI integration, similar to APIFairy for Flask
Do you have other ideas to propose? Let's discuss them!
Sponsor this project
This project relies on contributions from its users. If you benefit from it please consider making a single or ongoing monetary contribution in one of the following platforms:
Thank you!