| Jul | AUG | Sep |
| 14 | ||
| 2020 | 2021 | 2022 |
COLLECTED BY
Collection: Wide Crawl Number 18

This article lives in:
●Dev.to
●Medium
●GitHub
0.62.0 comes with global dependencies that you can apply to a whole application.
As well as top-level dependencies, tags, and other parameters for APIRouters, that before were available only on app.include_router().
This makes it easier to put configurations and dependencies (e.g. for authentication) related to a group of path operations more closely together. 🔒
Let’s start by checking APIRouter...
users.py with:
from fastapi import APIRouterrouter = APIRouter()And now let’s say you want to include it in the
@router.get("/users/")
def read_users():
return ["rick", "morty"]
main.py…
Read more · 2 min read
async and await syntax.
Here’s a friendly and not very technical explanation to give some intuition about all that, including asynchronous code, concurrency, and parallelism.
This is taken from the docs for FastAPI, a modern framework for building APIs in Python.
Although this was written for Python and FastAPI, all the story and information is relevant for other languages that also have async and await, like JavaScript and Rust.
…
Read more · 12 min read
1