Python REST API Tutorial for Beginners | How to Build a Flask REST API

  Рет қаралды 39,468

Dave Gray

Dave Gray

Күн бұрын

Пікірлер: 106
@DaveGrayTeachesCode
@DaveGrayTeachesCode 7 ай бұрын
Leave a comment to let me know what Python topics you want to see in the future 🙌 Thanks!
@codernerd7076
@codernerd7076 6 ай бұрын
FastAPI with Next.js maybe?!
@DaveGrayTeachesCode
@DaveGrayTeachesCode 6 ай бұрын
@@codernerd7076 nice suggestion!
@DhruvSahu-u8l
@DhruvSahu-u8l 6 ай бұрын
Https server with python and ssl
@apokalupsis116
@apokalupsis116 6 ай бұрын
Something similar for SOAP
@umernasir4217
@umernasir4217 6 ай бұрын
Fast API and Drizzle ORM
@ttaylor9916
@ttaylor9916 5 ай бұрын
Thanks!
@DaveGrayTeachesCode
@DaveGrayTeachesCode 4 ай бұрын
You're welcome - thank you for the support!
@NicolasJimenezValbuena-k6n
@NicolasJimenezValbuena-k6n 11 күн бұрын
Very useful! I decided to get into flask because I was looking for a fast way to built an api avoiding many settings
@Jay2Ops
@Jay2Ops 2 ай бұрын
Fantastic Tutorial!! I work as a DevOps Engineer and this has improved my API knowledge.🎉🎉🥳🥳
@xyzxyz6095
@xyzxyz6095 6 ай бұрын
Dave the Great Teacher. Thank you for your generosity with these videos on Python. Be Blessed. Salutations from France.
@DaveGrayTeachesCode
@DaveGrayTeachesCode 6 ай бұрын
You're very welcome!
@nikolaivakulenko375
@nikolaivakulenko375 Ай бұрын
Great explaination, there are no questions arise why you do this or that. Clear speech matters a lot. Thank you!
@DaveGrayTeachesCode
@DaveGrayTeachesCode Ай бұрын
Glad it was helpful!
@blackb819
@blackb819 27 күн бұрын
I'd like to thank you with this comment. it has been a while since i wanted to learn restfull api. Back then it was hard for me to understand what restful means and the usecase. when i understood the utility and the fact that in so many backend job post it is in, i said myself , get three hours to work on it. I found your tutorial, 40 minutes, thought it will be ok, not too long lol. finaly i did it and it was not that hard. But to master it i think i need to do it 5 or 10 times to understand better the flask-restfull module.
@muazuidrisy.4732
@muazuidrisy.4732 6 ай бұрын
Thanks for the video, Mr. Dave. We appreciate it. It would be great if you could make a video covering the complete backend with REST API. It should include user authentication and authorization, email verification, password reset, OTP, welcome message, and user upgrade to, let's say, a super user, etc.
@PINEDARONALD
@PINEDARONALD 12 күн бұрын
Thank you brother for this great I am very new in python but thank you I manage to make it , happy new year by the way
@xzex2609
@xzex2609 6 ай бұрын
every topic in related to backend is good(python). I recently worked with some express js api and it was amazingly simple and direct.
@dev-akeel
@dev-akeel 6 ай бұрын
Once upon a time Flask used to be called as a micro and minimalistic framework. But today I can see that it has a lot inside it.
@xzex2609
@xzex2609 6 ай бұрын
🤣🤣 that was the funniest most accurate description of the rest api : they are sitting at rest doing nothing except calling them and serving some data from db.
@codebykeoma
@codebykeoma 6 ай бұрын
Thank you for this! It was helpful. I would like to see a tutorial using a registration form with better data validation.
@MrRys
@MrRys 6 ай бұрын
great tutorial, one thing I have noticed, the abort method's error message needs to be a dict not just a string
@DaveGrayTeachesCode
@DaveGrayTeachesCode 6 ай бұрын
Yes, I forgot to add message= before the string. Updated the linked repo.
@tomproctor.archive
@tomproctor.archive 8 күн бұрын
Wow that's a learning curve. As a newbie I'm sorta intimidated.
@APL33025
@APL33025 25 күн бұрын
That was an excellent tutorial on building a REST API with Python
@snehasingh1929
@snehasingh1929 6 ай бұрын
yes please we need the next part awesome tutorial btw
@molleker
@molleker 6 ай бұрын
Hi Dave, I find your teaching style great. Thanks you very much for the amazing content! I'd definitely love to see more video about web development in Python in general and using Flask in particular.
@DaveGrayTeachesCode
@DaveGrayTeachesCode 6 ай бұрын
Thanks, will do!
@crushfire2004
@crushfire2004 6 ай бұрын
Continue seems interesting, currently I testing cody, cursor & supermaven
@DaveGrayTeachesCode
@DaveGrayTeachesCode 6 ай бұрын
Yes, I'm interested in comparing free options
@devNguy
@devNguy Ай бұрын
Good setup. Good explanation. Good project.
@rajendrakole5449
@rajendrakole5449 6 ай бұрын
Great Series Dave Sir! Love from India ♥️🇮🇳
@ashwinidhamodharan9694
@ashwinidhamodharan9694 Ай бұрын
Thanks so much. Easy to follow
@danielouattara3857
@danielouattara3857 6 ай бұрын
Hello Dave, Thank you for your work ! You provide us with very interesting and valuable content, not only in Python, but also in Next, React, ...etc. So in this way, if you miss some inspiration, you could adapt most of the projects you shared with in Next , React, PHP,...etc... to Python using Django or Flask as frameworks. Moreover, showing the parallel development of each code (like from Next to Python) could help understand the requirements and the logic migration for a given project. For example a Next.js completed project's code could be the starting point, then, you built again the project in Python and explain the logic migration from one to another. anyway , thank you again
@DaveGrayTeachesCode
@DaveGrayTeachesCode 6 ай бұрын
Great suggestion! 🙌
@mahmoudramzy5875
@mahmoudramzy5875 4 ай бұрын
amazing concise tutorial thank you
@chrisw5509
@chrisw5509 6 ай бұрын
I'm subscribed. Great video, easy to follow, great explanations. I like when you also show some "tips" for using VSC.
@DaveGrayTeachesCode
@DaveGrayTeachesCode 6 ай бұрын
Glad to hear that!
@shashank.s.pandey964
@shashank.s.pandey964 4 ай бұрын
Thanks Dave, Liked and Subscribed
@chroniclesofcliches
@chroniclesofcliches 6 ай бұрын
Thanks for the hard work put into this🙏 just waiting for one in Django
@DaveGrayTeachesCode
@DaveGrayTeachesCode 6 ай бұрын
More to come!
@LewisSacProduction
@LewisSacProduction Ай бұрын
Maybe you've already done something like this, but it would be cool if you could make a part 2 of this video and make it work remotly instead of localhost? Thanks, great videos!
@MuhammadHassan-l5g2d
@MuhammadHassan-l5g2d 6 ай бұрын
python topic I want to suggest * flask with streamlit, mesop also please take your time to create a complete project (never before seen on your channel) using flask and any frontend preferably React.
@DaveGrayTeachesCode
@DaveGrayTeachesCode 6 ай бұрын
Great requests!
@_byproxy
@_byproxy 6 ай бұрын
Hi! this video came at the perfect time for me and is super useful! If you had any guidance on how would be a good way to format an incoming search query for this type of REST API, I would be eternally grateful.
@DivyanshGupta-ef1rt
@DivyanshGupta-ef1rt 2 ай бұрын
Brilliant lecture!!❤
@hassanmirza2392
@hassanmirza2392 6 ай бұрын
Thanks Dave. More data engineering with python courses will be good.
@DaveGrayTeachesCode
@DaveGrayTeachesCode 6 ай бұрын
You're welcome!
@skbalajiusa
@skbalajiusa 4 ай бұрын
Excellent tutorial
@Akshaykumarrao-j9t
@Akshaykumarrao-j9t 6 ай бұрын
Hi Dave, this content is helpful if you make a video on flask framework full-course quite helpful for everyone can learn and grow 😊
@shahriaralom4547
@shahriaralom4547 22 күн бұрын
please make tutorial about writing python following documentation
@anjaneyulub2529
@anjaneyulub2529 6 ай бұрын
Nice content dave❤ pls make video on python with FastAPI
@DaveGrayTeachesCode
@DaveGrayTeachesCode 6 ай бұрын
Great request! I want to do this!
@psykoj
@psykoj 6 ай бұрын
Great tutorial!
@oussamabjj
@oussamabjj Ай бұрын
thank you sir i appreciate
@chrisw5509
@chrisw5509 6 ай бұрын
Yes, I would like to see more on Data Validation. Also, if you can do a video on FastAPI, I would appreciate that. I've created several FastAPI Web Apps for my personal use. I use MariaDB as my DB Server instead of SQLite. I also prefer to write raw SQL for my queries instead of SQLALchemy. However, I'm a novice and want I would like to improve my Apps.
@DaveGrayTeachesCode
@DaveGrayTeachesCode 6 ай бұрын
Great requests! Thank you!
@KhanhHoang-fi6yh
@KhanhHoang-fi6yh 6 ай бұрын
Please compare flask and fastapi, if i want to work with llms and langchain or llamaindex which one is better in your opinion. Thank you Dave for greate videos
@phevab
@phevab 6 ай бұрын
Learnt a lot. Much appreciated @Dave Gray Django and react authentication
@DaveGrayTeachesCode
@DaveGrayTeachesCode 6 ай бұрын
Glad to hear that!
@rexsybimatrimawahyu3292
@rexsybimatrimawahyu3292 6 ай бұрын
Awesome video and explanation, is it possible to make a continuation where how we can use the rest api with other non python framework?
@DaveGrayTeachesCode
@DaveGrayTeachesCode 6 ай бұрын
Thank you, and yes, great request!
@ericofernandes2204
@ericofernandes2204 6 ай бұрын
Nice content. Greetings from Brazil. Waiting for a Docker tutorial
@DaveGrayTeachesCode
@DaveGrayTeachesCode 6 ай бұрын
Glad you like it! Docker on its own or Docker with Python? Here's one I published earlier this year with Docker, PHP, Apache & Postgres: kzbin.info/www/bejne/hH2VZJKZi9Zpjqs
@ericofernandes2204
@ericofernandes2204 6 ай бұрын
@@DaveGrayTeachesCode with python
@john6283
@john6283 4 ай бұрын
watching this before my automation dev exam startsssss
@Huzaifa-p6e
@Huzaifa-p6e 6 ай бұрын
Hey Dave can we dockerize the REST flask api which inferences a ml model? , if so any tutorials?
@jordymaryns4945
@jordymaryns4945 6 ай бұрын
Nice video. Would it be possible to make a video that takes this concept and consumes it via NextJs? As a way to combine the best of both languages. (ideally Django, but I would assume that both will be similar)
@DaveGrayTeachesCode
@DaveGrayTeachesCode 6 ай бұрын
Great suggestion!
@Kennethlumor
@Kennethlumor 5 ай бұрын
Sir please is it true that flask Restful is not maintained again by the community and will be get rid of soon 🔜
@VenkatesanVenkat-fd4hg
@VenkatesanVenkat-fd4hg 6 ай бұрын
Requires to discuss JWT and other backend related series on python
@DaveGrayTeachesCode
@DaveGrayTeachesCode 6 ай бұрын
Agreed - additional backend topics will be a great addition 🙌
@KusalKalinga-g6d
@KusalKalinga-g6d 6 ай бұрын
Please Do FASTAPI series
@abzmantawil
@abzmantawil 6 ай бұрын
waiting for DJANGO API
@DaveGrayTeachesCode
@DaveGrayTeachesCode 6 ай бұрын
I plan to do this topic for sure!
@joaoarthurbandeira
@joaoarthurbandeira 6 ай бұрын
@@DaveGrayTeachesCodealso it would be great to show us how to integrate django rest with nextjs! 🙌🏻
@wayneforget3218
@wayneforget3218 Ай бұрын
Newby request....All tests well with Thunderclient but when it comes to releasing the API to users, how do I do that? I have my data on a hosting server and is managed with cPanel. How do I place the API on cPanel and then what is entered in the URL parameter when calling it from xCode? Any quick advice on that please?
@wayneforget3218
@wayneforget3218 Ай бұрын
Scratch that. I think I figured it out. Very good video explaining the basics, thank you Dave
@Umesh-p4u
@Umesh-p4u 2 ай бұрын
After listening to tutorial, when I try to create_db.py; I'm getting a (Runtime Error: Either 'SQLALCHEMY_DATABASE_URI' or 'SQLALCHEMY_BINDS' must be set.); Mr. Dave. Please help me with your valuable suggestions to overcome the error. Thanks in advance
@timl4844
@timl4844 Ай бұрын
I had the same problem, my mistake was that I wrote ['SQLAlchemy_DATABASE_URI'] in the app.config instead of everything uppercase. Also, have you checked that you typed URI instead of URL? If not check for typos, missing parenthesis or colons - those are usually what causes errors for me 😅
@jayyay693
@jayyay693 6 ай бұрын
Why is the virtual env needed I thought it’s not necessary please or anyone explain why it’s needed thanks
@asiamies9153
@asiamies9153 3 ай бұрын
So that you don't install all the packets globally but instead just locally for this project alone. That way it doesn't interfere with other projects you might have
@hawkhm97
@hawkhm97 4 ай бұрын
Like most technical they always forget things "How do you changr into the flask dir" I was teacher and when you are teaching create an outline and don't teach off the cuff.
@brancode404
@brancode404 5 ай бұрын
Please make Django Ninja videks
@Mona.Guerin
@Mona.Guerin 6 ай бұрын
building full websites with Flask
@ajiteshmishra0005
@ajiteshmishra0005 6 ай бұрын
Create same video for ReactJS and NodeJS So, that Frontend Developers can benefitted
@DaveGrayTeachesCode
@DaveGrayTeachesCode 6 ай бұрын
My Node.js course creates a full backend REST API here: kzbin.info/www/bejne/nGOoonh5nrl1gpo ...And I have a React playlist that creates a frontend to go with it here: kzbin.info/aero/PL0Zuz27SZ-6PRCpm9clX0WiBEMB70FWwd
@ajiteshmishra0005
@ajiteshmishra0005 6 ай бұрын
​@@DaveGrayTeachesCode A great Thank you Sir. We are learning more with your explanation. Keep uploading such videos. We wait for your explanation on every topics.
@nrayclips
@nrayclips 6 ай бұрын
All hail to King Viserys Targaryen👍
@DaveGrayTeachesCode
@DaveGrayTeachesCode 6 ай бұрын
Ha! Now where did I park my dragon?
@ggr0go
@ggr0go 6 ай бұрын
Full stack flask app
@narayanadhikari8157
@narayanadhikari8157 6 ай бұрын
Yes Yes Yes.
@DaveGrayTeachesCode
@DaveGrayTeachesCode 6 ай бұрын
🙌 Glad you like it!
@babar-khan
@babar-khan 6 ай бұрын
why many people are runnign towardds to python now ?
@DaveGrayTeachesCode
@DaveGrayTeachesCode 6 ай бұрын
I have not seen this happen. I have always used both JavaScript and Python.
@Shriram279-1
@Shriram279-1 6 ай бұрын
seems to be very complicated for a beginner who is good at basics of python. Got headache by going through it. I wonder ppl commented here they got to know the content very well. U ppl serious?
@asiamies9153
@asiamies9153 3 ай бұрын
If you only know Python basics, this might not be the best next step. Maybe look into SQL databases, APIs, REST and web development in general first
@zlackbiro
@zlackbiro 6 ай бұрын
Flask is the worst web framework created in history of Web development. Dude, That crap is so slow that can't even finish the simple benchmark.
@asiamies9153
@asiamies9153 3 ай бұрын
Sounds like you're not using it the way it's supposed to be used
@chrisw1462
@chrisw1462 3 ай бұрын
@8:04 SQL doesn't stand for 'sequel'. That's just people that think they're smart pronouncing the initials for Structured Query Language. (Not that I have a thing against pronouncing acronyms. :-P) Sequel Technologies made Sequel DBMS, a commercial database program that did SQL, obviously. They fell out of favor and seem to have disappeared. So that, along with the obvious pronunciation of the initials, was the origin of SQL = sequel.
@asiamies9153
@asiamies9153 3 ай бұрын
Nah, it's one of the widely used ways of pronouncing it, nothing to do with "thinking they're smart"
@1duducm
@1duducm Ай бұрын
Thanks a lot
REST API Crash Course - Introduction + Full Python API Tutorial
51:57
Python Virtual Environment and pip for Beginners
30:39
Dave Gray
Рет қаралды 36 М.
My scorpion was taken away from me 😢
00:55
TyphoonFast 5
Рет қаралды 2,7 МЛН
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН
C++ Super Optimization: 1000X Faster
15:33
Dave's Garage
Рет қаралды 332 М.
PLEASE Use These 5 Python Decorators
20:12
Tech With Tim
Рет қаралды 128 М.
How I Would Learn Python FAST (if I could start over)
12:19
Thu Vu data analytics
Рет қаралды 697 М.
5 Python Libraries You Should Know in 2025!
22:30
Keith Galli
Рет қаралды 84 М.
This is How I Scrape 99% of Sites
18:27
John Watson Rooney
Рет қаралды 237 М.
Docker Для Начинающих за 1 Час | Docker с Нуля
52:43
Create A Python API in 12 Minutes
12:05
Tech With Tim
Рет қаралды 729 М.
Request API data using Python in 8 minutes! ↩️
8:34
Bro Code
Рет қаралды 42 М.
My scorpion was taken away from me 😢
00:55
TyphoonFast 5
Рет қаралды 2,7 МЛН