FastAPI, Flask or Django - Which Should You Use?

  Рет қаралды 49,552

Tech With Tim

Tech With Tim

Күн бұрын

Get started using professional JetBrains IDEs for free today: jb.gg/Get-JetBrains-IDEs
FastAPI, Flask or Django? This is the question you should be asking yourself if you're interested in Python web development. In this video, I'm going to break down everything you need to know about these three different frameworks and tell you which one you should pick depending on your use case.
If you want to land a developer job check out my program with CourseCareers: techwithtim.net/dev
⏳ Timestamps ⏳
00:00 | Overview of Frameworks
01:12 | Using These Frameworks
02:28 | Ease of Learning
03:51 | Performance
04:52 | Use Cases
07:34 | Community & Ecosystem
08:25 | Job Prospects
Hashtags
#techwithtim #django #fastapi #flask #pythonwebdevelopment

Пікірлер: 109
@mr_don_key
@mr_don_key Ай бұрын
Django is very fast (it might be the slowest of the three, but it's relative), you can easily serve 1000's of connections per minute (and even do async if you want), so for most websites, it's way fast enough (we're not fortune 500 sites).
@jaimel8219
@jaimel8219 17 күн бұрын
Django async support in 2024 is awful.
@mr_don_key
@mr_don_key 16 күн бұрын
@@jaimel8219 define "awful"?
@Your_mom_calls_me_luka
@Your_mom_calls_me_luka 16 күн бұрын
Exactly. People talking speed like they are the next facebook or whatnot but in reality most of them have 100 active users at best
@user-ts9ks8in2n
@user-ts9ks8in2n Ай бұрын
Now I clearly understand what to use first and why. Thanks Tim.
@azariahazane4101
@azariahazane4101 16 күн бұрын
which is first?
@nocopyrightgameplaystockvi231
@nocopyrightgameplaystockvi231 Ай бұрын
Django for smaller projects works fine, in any case you want more features later once it grows
@aashayamballi
@aashayamballi Ай бұрын
Totally 💯
@pedrod.7576
@pedrod.7576 Ай бұрын
Django is a nightmare to setup for beginners.
@nocopyrightgameplaystockvi231
@nocopyrightgameplaystockvi231 Ай бұрын
@@pedrod.7576 for beginners if they have never set up or wrote a project profesionally, which they will be doing going forward anyway. Django teaches that at first which is a good thing.
@robopaul9
@robopaul9 Ай бұрын
Django is really easy to get started and actually major companies such as Google use it so that's actually completely false that it's only for small projects
@nocopyrightgameplaystockvi231
@nocopyrightgameplaystockvi231 Ай бұрын
@@robopaul9 django is too good for small projects
@nandamvyshnavi5075
@nandamvyshnavi5075 18 күн бұрын
This comparison is wonderful , Thanks Tim !!
@y2ksw1
@y2ksw1 Ай бұрын
I use Flask, because it allows me to make temporary decisions based on short term requirements more easily. The usage of Blueprints for example makes it very modular and easy to change. I tried Django before, but was overwhelmed by too much magic behavior.
@TheAremoh
@TheAremoh Ай бұрын
Honestly the behavior is magical. I'll hardly pick for an api project. For web apps, I can make do with the magic
@tokyo.4364
@tokyo.4364 Ай бұрын
amazing video as always tim, thank you!
@riyansh3396
@riyansh3396 46 минут бұрын
I started with Flask it made me understand the flow and basics and then I started Django that made me aware of some really cool reasons why Django is used in companies and its advantages and then I am doing internship so here I am working on fastapi which is pretty much similar to Express so now I know advantages of fastapi and why its called fast.
@AaronGayah-dr8lu
@AaronGayah-dr8lu 26 күн бұрын
Had debated that choice for a long time. Appreciate this breakdown.
@urdarkside1
@urdarkside1 Ай бұрын
Hi Tim, What cloud vendor is most sought after between AWS and Azure from your experience?
@2dapoint424
@2dapoint424 Ай бұрын
Hey Tim, what’s your view on Flask-async? How does that compare with fast-api?
@thrasosthrasos7353
@thrasosthrasos7353 22 күн бұрын
I'm using Django without ORM and without templates and it is works quite well. Achieving more complex queries with ORM has to much performance penalties or is impossible, so I'm using it only for table User related things. Instead of templates I'm using Vue templates on the client side. Apache configuration was a little tricky, but after a few weeks of experimentation is started to work as expected. ASGI is possible with Django, but I've got impression it is not ready 100%. The main reason why I need ASGI is to run two query in parallel but AFAIK it is not possible with current Django.
@TheAremoh
@TheAremoh Ай бұрын
I like the control I have over micro frameworks
@Jonathan-rm6kt
@Jonathan-rm6kt Ай бұрын
Which would you recommend for the best ORM? In terms of config simplicity and compatibility? I see a lot of fast API based projects with shiny new ORM extensions, but they seem to all be built off SQL alchemy. Best to just start with flask and vanilla sql alchemy?
@romainchan7165
@romainchan7165 23 күн бұрын
What about streaming video or music? Is it alright to use django or flask or fast?
@zealousprogrammer4539
@zealousprogrammer4539 Ай бұрын
@Tech wih Tim your carrercourse website have a bug user cannot log in please fix it thank you!
@amaharra8569
@amaharra8569 27 күн бұрын
Tim you're top man mate!
@ayushshende4290
@ayushshende4290 Ай бұрын
a video demonstrating the async side of fast api would be very helpful.
@dscyberdefense
@dscyberdefense Ай бұрын
you could also simply google 'async fast api'
@oblivion7300
@oblivion7300 Ай бұрын
hey Tim do a fast api react stack blocgging system that uses crud
@sitrakaforler8696
@sitrakaforler8696 Ай бұрын
Flask for simple prototyping, Django for professional features, and FastAPI for high performance APIs Django is (i think) so fcking cool and its ORM is awesome ! Fast Api is cool tho
@misterjs023
@misterjs023 11 күн бұрын
legal, mano... obrigado, digamos que eu queira construir uma empresa de táxi, tipo uber por exemplo, estou usando react nativo para meu celular, preciso de um dashboard, preciso usar comunicação em tempo real no backend do claro, para conectar meu painel e o aplicativo em uma comunicação em tempo real, qual devo usar?
@erictheawesomest
@erictheawesomest 17 күн бұрын
What about laravel? I've only just started working with it but livewre looks quite good
@prime_soldier27
@prime_soldier27 Ай бұрын
Hi, Tim. Which one would you recommend for an ML engineer?
@codewithlenny
@codewithlenny Ай бұрын
Typically for an ML engineer, you'd deploy a model via an API. For that, sticking to the more API focused framework (FastAPI) would be ideal.
@prime_soldier27
@prime_soldier27 Ай бұрын
@@codewithlenny Thank You.
@NSILY
@NSILY Ай бұрын
do you do requests? if you do, can you make a new django series. just do the basic as always and if possible compare some of your codes/lines on your last django series to the modern one.
@williansuarez3988
@williansuarez3988 Ай бұрын
Excelente resúmen
@ishakapoor2692
@ishakapoor2692 21 күн бұрын
You did not discuss django rest framework
@davidkarl3237
@davidkarl3237 23 күн бұрын
What about Reflex Framework ?
@coderprakash
@coderprakash 28 күн бұрын
Please make a video on nodejs vs springboot vs django?
@jjeverson2269
@jjeverson2269 17 күн бұрын
DjangoRestFramework is awesome but I love the flexibility of FastAPI
@chobblegobbler6671
@chobblegobbler6671 Ай бұрын
Tell a good aggrid like framework fir any Python webapp
@zrizzy6958
@zrizzy6958 17 күн бұрын
7:18 - the subtitle is synchronous insted of asynchronous programming
@ninokojadinovic
@ninokojadinovic 25 күн бұрын
Are you in Bali?
@monkmodelandon2024-kh6ot
@monkmodelandon2024-kh6ot Ай бұрын
honestly, just bite the bullet and go with Django. Once you get the hang of django, it's the only framework you'll want to use.
@putnam120
@putnam120 23 күн бұрын
Imo prototyping in fastapi is the same as flask. You don't need to use all the typing and async features
@shreyaschillal
@shreyaschillal Ай бұрын
Exact video I got
@buildfromzero
@buildfromzero Ай бұрын
Hi Tim ❤
@buildfromzero
@buildfromzero Ай бұрын
One of your old subscriber 🎉
@Pachadirri
@Pachadirri 26 күн бұрын
I use Falcon
@PRIME322
@PRIME322 Ай бұрын
Thanks Tim for your help but I will love for you to create a full basic structure documentation video about flask,fastapi and Django from the starting point to the end and even how to put it online and make updates when necessary please please do this for us 🙏
@TechWithTim
@TechWithTim Ай бұрын
I have many videos on all of themb
@PRIME322
@PRIME322 Ай бұрын
@@TechWithTim ok but please do you have videos on how to update your website
@deekfeels
@deekfeels Ай бұрын
@@TechWithTim Hello sir Tim, can you please do a full comprehensive video on the general process of building a professional website, and how to organize your files and folders to s to come up with a professional website. thanks, will be looking forward to that.
@FranzAllanSee
@FranzAllanSee Ай бұрын
I find not much reason using flask over fastapi. And if i need performance, I use robyn
@mintz347
@mintz347 29 күн бұрын
Do more web development with Django please?😢
@ar2050
@ar2050 27 күн бұрын
I do on my channel
@robelasefa7
@robelasefa7 Ай бұрын
Hey Tim, love your channel, but hoping to see more videos like the ones that originally drew me here. The recent sponsor-focused content has been a bit off-putting.
@christislight
@christislight Ай бұрын
I love Flask
@MrSunTrope
@MrSunTrope Ай бұрын
I love django
@wasteoftime8839
@wasteoftime8839 12 күн бұрын
You did not refer django-ninja , that combines fastapi with django.
@Darkvader9427
@Darkvader9427 Ай бұрын
please create a large web application using farm stack
@ajayg2752
@ajayg2752 Ай бұрын
What is farm stack
@shekharsikku
@shekharsikku Ай бұрын
​@@ajayg2752 fastapi react mongodb
@moneeshkumar1838
@moneeshkumar1838 Ай бұрын
@@ajayg2752FARM -> FastAPI, React, MongoDB
@CreatedByDalius
@CreatedByDalius Ай бұрын
@@ajayg2752 fast api, react, mongodb is Farm stack
@FranzAllanSee
@FranzAllanSee Ай бұрын
​@@ajayg2752FastApi, React and Mongo. It's not a thing 😂
@versusbassz
@versusbassz Ай бұрын
Lightstar
@TheAremoh
@TheAremoh Ай бұрын
Litestar and robyn are great frameworks too.
@MrAdBounty
@MrAdBounty Ай бұрын
I use flask in production at work. Performance is relative, you usually don't need it. Not saying don't take the fastest one. I did choose my Go framework on benchmarks But don't stop yourself to use flask, that plenty enough to do a lot of stuff.
@usamashami11
@usamashami11 Ай бұрын
I don't have much time I feel sad that I couldn't watch all videos 😢
@GolapSk-xw1es
@GolapSk-xw1es 24 күн бұрын
How to track crypto whales using the Etherscan API
@pixelartist1532
@pixelartist1532 Ай бұрын
Quart > FastApi. And if hight performance is important then you shouldn't be using python anyways.
@bernardwodoame9850
@bernardwodoame9850 21 күн бұрын
Django is what I use daily.
@Leao_da_Montanha
@Leao_da_Montanha 21 күн бұрын
the real deal is litestar
@jamikemichelohia2615
@jamikemichelohia2615 Ай бұрын
I use all 3
@sgsfak
@sgsfak 19 күн бұрын
Litestar
@pythonbrothersandfamily
@pythonbrothersandfamily 21 сағат бұрын
FASTAPI
@jeffkirchoff14
@jeffkirchoff14 27 күн бұрын
Hono is new
@t0khyo
@t0khyo 16 күн бұрын
Just use Java Spring🍝
@prajnaparamitahrdaya
@prajnaparamitahrdaya 2 күн бұрын
Sanic
@D_M_Tech
@D_M_Tech Ай бұрын
Hi sir h r u .? Long time no see u?sir plz python with mangodb in real a ecommernce website full for a to z all things plz describe
@TheRealisticNihilist
@TheRealisticNihilist Ай бұрын
No no no no no no no. Emacs only!
@The_Quaalude
@The_Quaalude Ай бұрын
Bro just casually flexing with the background 😭
@apexashwin
@apexashwin 17 күн бұрын
Golang
@flogginga_dead_horse4022
@flogginga_dead_horse4022 Ай бұрын
none of the above lol
@Ohiostategenerationx
@Ohiostategenerationx Ай бұрын
You guy's need to tell each other when you are making a video. Both you guy's are always walking around in the background.
@TechWithTim
@TechWithTim Ай бұрын
Just enjoy the view
@denverjamesduran2750
@denverjamesduran2750 Ай бұрын
True what's the matter with people walking xD
@Ohiostategenerationx
@Ohiostategenerationx Ай бұрын
@@denverjamesduran2750 I was messing with him calm down.
@likithb3726
@likithb3726 24 күн бұрын
streamlit crying in corner
@zedev444
@zedev444 15 күн бұрын
* Shifts to talk about IDEs - Well that's a bit weird * The sponsor of tOdAyS vIdEo - sigh, skip to next chapter Honestly I'd rather have you say "before continuing a word from our sponsor" instead of these forced cringy segways
@andrewhannebrink56
@andrewhannebrink56 18 күн бұрын
Disliked bc jetbrains
@destroyer9154
@destroyer9154 Ай бұрын
I am learning django 🎉 it is best for ai development also
@oxyht
@oxyht Ай бұрын
Why?
@destroyer9154
@destroyer9154 Ай бұрын
@@oxyht in a real time ai application we use tons of data to manage those mount of datas We need powerful framework like django
@AdolfRizzler41
@AdolfRizzler41 22 күн бұрын
​@@destroyer9154you can integrate ai with js also😂 no need to waste time on python
How To Create a Python API With FastAPI - Full Tutorial
25:39
Tech With Tim
Рет қаралды 30 М.
Popular Technologies that Won't be Around Much Longer...
14:36
Sideprojects
Рет қаралды 137 М.
OMG😳 #tiktok #shorts #potapova_blog
00:58
Potapova_blog
Рет қаралды 3,6 МЛН
Increíble final 😱
00:37
Juan De Dios Pantoja 2
Рет қаралды 107 МЛН
Learn Django in 20 Minutes!!
21:25
Tech With Tim
Рет қаралды 313 М.
5 Good Python Habits
17:35
Indently
Рет қаралды 397 М.
UI Libraries Are Dying, Here's Why
13:28
Theo - t3․gg
Рет қаралды 273 М.
20 Programming Projects That Will Make You A God At Coding
14:27
The Coding Sloth
Рет қаралды 548 М.
Why You NEED To Learn FastAPI | Hands On Project
21:15
Travis Media
Рет қаралды 149 М.
PLEASE Use These 5 Python Decorators
20:12
Tech With Tim
Рет қаралды 98 М.
OMG😳 #tiktok #shorts #potapova_blog
00:58
Potapova_blog
Рет қаралды 3,6 МЛН