This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from typing import ( | |
Awaitable, | |
Iterable, | |
Mapping, | |
Optional, | |
Protocol, | |
Tuple, | |
TypeVar, | |
Union, | |
cast, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" Snippet that demonstrates how to use Uvicorn in code. | |
Feel free to run: | |
- `python main.py` | |
""" | |
import asyncio | |
import uvicorn | |
from pydantic import BaseSettings |