## Example
-```python title="example.py"
+```python title="main.py"
from starlette.applications import Starlette
from starlette.responses import JSONResponse
from starlette.routing import Route
Then run the application using Uvicorn:
```shell
-$ uvicorn example:app
+$ uvicorn main:app
```
-For a more complete example, see [encode/starlette-example](https://github.com/encode/starlette-example).
-
## Dependencies
Starlette only requires `anyio`, and the following are optional:
- Community:
- Third Party Packages: "third-party-packages.md"
- Contributing: "contributing.md"
+ - Sponsorship: "sponsorship.md"
markdown_extensions:
+ - attr_list
- admonition
- pymdownx.highlight
- pymdownx.superfences
- pymdownx.details
- pymdownx.tabbed:
alternate_style: true
+ - pymdownx.emoji:
+ emoji_index: !!python/name:material.extensions.emoji.twemoji
+ emoji_generator: !!python/name:material.extensions.emoji.to_svg
watch:
- starlette