v2 (#186)
This commit is contained in:
21
README.md
21
README.md
@@ -3,9 +3,9 @@
|
||||
|
||||
*“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.
|
||||
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
|
||||
@@ -13,13 +13,24 @@ from microdot import Microdot
|
||||
app = Microdot()
|
||||
|
||||
@app.route('/')
|
||||
def index(request):
|
||||
async def index(request):
|
||||
return 'Hello, world!'
|
||||
|
||||
app.run()
|
||||
```
|
||||
|
||||
## Migrating to Microdot 2
|
||||
|
||||
Version 2 of Microdot incorporates feedback received from users of earlier
|
||||
releases, and attempts to improve and correct some design decisions that have
|
||||
proven to be problematic.
|
||||
|
||||
For this reason most applications built for earlier versions will need to be
|
||||
updated to work correctly with Microdot 2. The
|
||||
[Migration Guide](https://microdot.readthedocs.io/en/stable/migrating.html)
|
||||
describes the backwards incompatible changes that were made.
|
||||
|
||||
## Resources
|
||||
|
||||
- [Documentation](https://microdot.readthedocs.io/en/latest/)
|
||||
- [Documentation](https://microdot.readthedocs.io/en/stable/)
|
||||
- [Change Log](https://github.com/miguelgrinberg/microdot/blob/main/CHANGES.md)
|
||||
|
||||
Reference in New Issue
Block a user