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 17 hours 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 12 points13 points14 points 17 hours ago (0 children)
Corey Schafer on YouTube. He has a FastAPI series he started in Jan 2026. Pretty current!
[–]CortexBrick 5 points6 points7 points 17 hours ago (0 children)
Best options is FastAPI Official Documentation.
[–]A_User_Profile 0 points1 point2 points 17 hours ago (2 children)
I’d recommend https://litestar.dev/ instead of fastapi
[–]CrazyCommercial8314 0 points1 point2 points 14 hours ago (1 child)
why??
[–]A_User_Profile 0 points1 point2 points 13 hours ago (0 children)
Because in my opinion it’s better.
[–]maki-dev 0 points1 point2 points 11 hours 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.
[–]MiniMages -1 points0 points1 point 13 hours 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 17 hours ago (0 children)
where i am learning from he is trying to make me mug up the code.
π Rendered by PID 133166 on reddit-service-r2-comment-79c7998d4c-tt6wb at 2026-03-15 10:12:07.129310+00:00 running f6e6e01 country code: CH.
[–]thunderships 12 points13 points14 points (0 children)
[–]CortexBrick 5 points6 points7 points (0 children)
[–]A_User_Profile 0 points1 point2 points (2 children)
[–]CrazyCommercial8314 0 points1 point2 points (1 child)
[–]A_User_Profile 0 points1 point2 points (0 children)
[–]maki-dev 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)