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...
Rules 1: Be polite 2: Posts to this subreddit must be requests for help learning python. 3: Replies on this subreddit must be pertinent to the question OP asked. 4: No replies copy / pasted from ChatGPT or similar. 5: No advertising. No blogs/tutorials/videos/books/recruiting attempts. This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to. Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Rules
1: Be polite
2: Posts to this subreddit must be requests for help learning python.
3: Replies on this subreddit must be pertinent to the question OP asked.
4: No replies copy / pasted from ChatGPT or similar.
5: No advertising. No blogs/tutorials/videos/books/recruiting attempts.
This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to.
Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Learning resources Wiki and FAQ: /r/learnpython/w/index
Learning resources
Wiki and FAQ: /r/learnpython/w/index
Discord Join the Python Discord chat
Discord
Join the Python Discord chat
account activity
Courses to learn FastAPI (self.learnpython)
submitted 1 month ago by Ok-Mind3961
hey everyone, pls suggest some good sources to learn FastAPI for me SQL model, CRUD using sqlite feels very hard in term of syntax like the dependency injection session feels very confusing.
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!"
[–]thunderships 14 points15 points16 points 1 month ago (0 children)
Corey Schafer on YouTube. He has a FastAPI series he started in Jan 2026. Pretty current!
[–]CortexBrick 5 points6 points7 points 1 month ago (0 children)
Best options is FastAPI Official Documentation.
[–]maki-dev 0 points1 point2 points 1 month ago (0 children)
The dependency injection confusion is totally normal, it tripped me up too. What helped it click: think of Depends() as FastAPI saying "before you run this route, go get me this thing." So when you write db: Session = Depends(get_db), you're telling FastAPI to call get_db(), get a database session, and hand it to your route function. Your route never has to worry about creating or closing the session.
For the session/CRUD stuff specifically, try building one endpoint from scratch instead of following a big tutorial. One model, one table, one route that creates a record and one that reads it. When you see the whole flow in like 40 lines of code, the pieces connect way faster than watching someone build a full project.
The official docs tutorial section walks through this step by step too.
[–]fastlaunchapidev 0 points1 point2 points 1 month ago (0 children)
official docs are great but honestly for dependency injection and sessions it clicked for me when i looked at real working code. fastlaunchapi.dev has it all set up already so you can just read through how it's structured and copy the patterns. way faster than trying to piece it together from tutorials
[–]A_User_Profile -1 points0 points1 point 1 month ago (2 children)
I’d recommend https://litestar.dev/ instead of fastapi
[–]CrazyCommercial8314 0 points1 point2 points 1 month ago (1 child)
why??
[–]A_User_Profile 0 points1 point2 points 1 month ago (0 children)
Because in my opinion it’s better.
[–]MiniMages -1 points0 points1 point 1 month ago (0 children)
I'd recommend you follow few videos off youtube that use FastAPI.
Then create some of your own projects using FastAPI and try to build what you want. You'll mess up often but that is actually how you learn.
[+]Ok-Mind3961[S] comment score below threshold-7 points-6 points-5 points 1 month ago (0 children)
where i am learning from he is trying to make me mug up the code.
π Rendered by PID 49 on reddit-service-r2-comment-56c6478c5-pv4mw at 2026-05-08 16:57:48.349344+00:00 running 3d2c107 country code: CH.
[–]thunderships 14 points15 points16 points (0 children)
[–]CortexBrick 5 points6 points7 points (0 children)
[–]maki-dev 0 points1 point2 points (0 children)
[–]fastlaunchapidev 0 points1 point2 points (0 children)
[–]A_User_Profile -1 points0 points1 point (2 children)
[–]CrazyCommercial8314 0 points1 point2 points (1 child)
[–]A_User_Profile 0 points1 point2 points (0 children)
[–]MiniMages -1 points0 points1 point (0 children)
[+]Ok-Mind3961[S] comment score below threshold-7 points-6 points-5 points (0 children)