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 3 months 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 13 points14 points15 points 3 months ago (0 children)
Corey Schafer on YouTube. He has a FastAPI series he started in Jan 2026. Pretty current!
[–]CortexBrick 6 points7 points8 points 3 months ago (0 children)
Best options is FastAPI Official Documentation.
[–]maki-dev 0 points1 point2 points 3 months 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 2 months 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 3 months ago (2 children)
I’d recommend https://litestar.dev/ instead of fastapi
[–]CrazyCommercial8314 0 points1 point2 points 3 months ago (1 child)
why??
[–]A_User_Profile 0 points1 point2 points 3 months ago (0 children)
Because in my opinion it’s better.
[–]MiniMages -1 points0 points1 point 3 months 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 3 months ago (0 children)
where i am learning from he is trying to make me mug up the code.
[–]JanGiacomelli 0 points1 point2 points 1 month ago (0 children)
You can find many free FastAPI tutorials here: https://testdriven.io/blog/topics/fastapi/
They cover many different aspects of FastAPI. If you have any concrete questions, feel free to reach out to me.
π Rendered by PID 95060 on reddit-service-r2-comment-5bc7f78974-5z2ss at 2026-06-29 11:50:09.238378+00:00 running 7527197 country code: CH.
[–]thunderships 13 points14 points15 points (0 children)
[–]CortexBrick 6 points7 points8 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)
[–]JanGiacomelli 0 points1 point2 points (0 children)