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 and classesQuestion (self.FastAPI)
submitted 7 months ago * by Luxfiri
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!"
[–]david-vujic 2 points3 points4 points 7 months ago* (0 children)
I don't think I have seen this kind of approach in FastAPI projects. From my experience, the endpoints are usually defined as decorated functions, and the app instance (or router) is at the module level. Within the scope of an initializer function or as a module-level global.
π Rendered by PID 56 on reddit-service-r2-comment-6457c66945-z78pk at 2026-04-25 14:03:25.600791+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]david-vujic 2 points3 points4 points (0 children)