Python sample files for some less known Python 3.10+ features
You need poetry to install dependencies.
Run:
poetry install
poetry run python asyncio_sample.py
: sample full asyncio functionpoetry run python asyncio_sync_sample.py
: sample mixed sync / asyncio functionpoetry run python typing_sample.py
: sample typed codepoetry run uvicorn api_sample:app
: sample FastAPI code