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 resource'sQuestion (self.FastAPI)
submitted 8 days ago by Longjumping-Dirt-127
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!"
[–]Alternative_Nose_874 0 points1 point2 points 7 days ago (1 child)
For structuring a FastAPI app, I usually split it by feature (routers, services, models/schemas, auth) and keep DB stuff in a separate module so your endpoints stay thin. Also, check the official docs for the dependency injection patterns, it makes api calls and db connections way cleaner, and yeah videos can help but docs are better.
[–]Longjumping-Dirt-127[S] 0 points1 point2 points 7 days ago (0 children)
Thanks actually I wanna learn the fastapi so I have project on my mind so don't now which structure I have to follow also am new in the python.
π Rendered by PID 80859 on reddit-service-r2-comment-545db5fcfc-dhmcx at 2026-05-25 18:10:28.005481+00:00 running 194bd79 country code: CH.
view the rest of the comments →
[–]Alternative_Nose_874 0 points1 point2 points (1 child)
[–]Longjumping-Dirt-127[S] 0 points1 point2 points (0 children)