44 lines
1.7 KiB
Markdown
44 lines
1.7 KiB
Markdown
# microdot
|
|
[](https://github.com/miguelgrinberg/microdot/actions) [](https://codecov.io/gh/miguelgrinberg/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.
|
|
|
|
```python
|
|
from microdot import Microdot
|
|
|
|
app = Microdot()
|
|
|
|
@app.route('/')
|
|
async def index(request):
|
|
return 'Hello, world!'
|
|
|
|
app.run()
|
|
```
|
|
|
|
## Resources
|
|
|
|
- [Change Log](https://github.com/miguelgrinberg/microdot/blob/main/CHANGES.md)
|
|
- Documentation
|
|
- [Latest](https://microdot.readthedocs.io/en/latest/)
|
|
- [Stable (v2)](https://microdot.readthedocs.io/en/stable/)
|
|
- Legacy (v1)
|
|
- [Code](https://github.com/miguelgrinberg/microdot/tree/v1)
|
|
- [Documentation](https://microdot.readthedocs.io/en/v1/)
|
|
|
|
## Roadmap
|
|
|
|
The following features are planned for future releases of Microdot, both for
|
|
MicroPython and CPython:
|
|
|
|
- Authentication support, similar to [Flask-Login](https://github.com/maxcountryman/flask-login) for Flask (**Added in version 2.1**)
|
|
- Support for forms encoded in `multipart/form-data` format (**Added in version 2.2**)
|
|
- CSRF protection extension (**Added in version 2.5**)
|
|
- Pub/sub mini-framework for WebSocket and SSE
|
|
- OpenAPI integration, similar to [APIFairy](https://github.com/miguelgrinberg/apifairy) for Flask
|
|
|
|
Do you have other ideas to propose? Let's [discuss them](https://github.com/:miguelgrinberg/microdot/discussions/new?category=ideas)!
|