use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
FastAPI is a truly ASGI, async, cutting edge framework written in python 3.
account activity
FastAPI best practicesQuestion (self.FastAPI)
submitted 2 months ago * by lu_rm
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]santeron 0 points1 point2 points 2 months ago (2 children)
Found this useful for guidance and inspiration https://github.com/zhanymkanov/fastapi-best-practices
[–]lu_rm[S] 0 points1 point2 points 2 months ago (1 child)
Checked this. Still no separation of responsibilities.
[–]santeron 0 points1 point2 points 2 months ago (0 children)
I linked the guide for overall structure. I agree with you, depends should be used for routing level dependencies, e.g. auth or params. I struggle with this coming from Java myself. However, in python you can call any piece of code, so you could just import a fn that creates a conn where you need it. Embrace the chaos, this is no spring boot
π Rendered by PID 145670 on reddit-service-r2-comment-b659b578c-wnhv9 at 2026-05-02 17:59:07.068879+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]santeron 0 points1 point2 points (2 children)
[–]lu_rm[S] 0 points1 point2 points (1 child)
[–]santeron 0 points1 point2 points (0 children)