Clean IoC seems possible with FastAPI+SA
db
"package" is Secondary adapter levelrest
"package" is Primary adapter levelusers
"package" contains Entity (User
) and Entity use cases underregistry.Users
class- Everything top-level under
app
(main.py
anddeps.py
) can be considered Infrastructure level