fastapi_layered Repository for the article - https://habr.com/ru/articles/761712/ Everything is described in more detail in the article itself.