Minimal Flask REST API in Python
Вставка
- Опубліковано 4 лют 2025
- In this video, we build a simple minimal REST API in Python using Flask.
◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾
📚 Programming Books & Merch 📚
🐍 The Python Bible Book: www.neuralnine...
💻 The Algorithm Bible Book: www.neuralnine...
👕 Programming Merch: www.neuralnine...
🌐 Social Media & Contact 🌐
📱 Website: www.neuralnine...
📷 Instagram: / neuralnine
🐦 Twitter: / neuralnine
🤵 LinkedIn: / neuralnine
📁 GitHub: github.com/Neu...
🎙 Discord: / discord
🎵 Outro Music From: www.bensound.com/
I’ve spent the last 2 weeks going between tonnes of UA-cam videos to build an API in flask connected to MySQL. So glad you produced this and would love to see you take it further with Auth JWT, Roles Required etc!
I was studying but this looks more important 😂
Can relate
😂
Genuinely the most amazing tutorial I've seen very easy to follow. Will be watching more of your vids, thanks so much for the help!
Hey NeuraLine, it's me, Zuber from everywhere. I love your videos no matter what subject you're teaching!
Thank you so much for this video!
Actually started lookign into flask and you post this video
i'm not currently studying web dev but your videos will be so helpful when I start it! Thank you so much
Same
Hello NeuralNine good job for your work
Crystal Clear and Rare!
when video id is not passed you can set a default id and check if it was updated like so:
def get(self, video_id=''):
if video_id == '':
return videos
elif video_id in videos:
return videos[video_id]
Thanks Bro! This video is great)))
I have exam day after tomorrow but this is more interesting 😅
I have in 24
If it is a Flask exam... 👀
@@NeuralNine It was English Exam LOL
It helps us and your channel if you start teaching from scratch rather than bits and pieces.
Not really. My experience is that the series videos perform way worse. This is not only bad for views (my channel) but also for the viewers since they seem to watch less of the content.
@@NeuralNine I think also "bits and pieces" are the best way: that makes people versatile! At the world we are, one should be able to do Math, Datascience, Python coding, REST APIs, even html and bootstrap! To be able to produce a deliverable useful app, you must have various skills, master various things and have not only one knowledge, but also various.
Actually many of your video are helpful to me.. mostly when I had knowledge about respective topic.
But when I want to start something new its hard to grasp...
hey are there any videos about async and await syntax on your channel ? Cuz i couldn't find any if not plz do one, and btw I really like your content keep up the good work
This library flask_restful is outdated? Because the last realease was in march 2021...
Just a curiosity: in this case, why not send the data to fronted using render_template, for example, to display the data on a html page? Why send the data as json?
The essense of RESTful is to be able to be consumed by any frontend framework e.g react, VUE, even templates itself. render_template is specifically for templates or rather Flask fullstack(using Jinja2
)
Not related to this particular post, but would you do a video on detecting chart patterns for example the double bottom and head and shoulders pattern using python, given ohlc data
Neural, Make a second part of 'web browser' video tu implement more functions to it, please
perhaps the reason why it is not working with the empty string is it passes a different datatype, maybe None? not sure though, I'd have to test it out myself
sir please create a full playlist of flask tuts to creating a simple projects
Could you comment on post/get timing assuming it’s all on the local network/system?
Yo, the Matlab comment 💀
anyone having trouble with the PUT section? Keep getting {"message": "The browser (or proxy) sent a request that this server could not understand."}. I'm talking about 12:05. That part doesnt work for me.
yes the same for me. Did you find a solution?
the `args = parser.parse_args()` in the put() method does not work for me
@@SamuelKreyenbuehl I got it now! His line 8 change it to 'parser.add_argument('title',required=True, location='form')'
Not a single method working in my case. All i get is {"message": "The browser (or proxy) sent a request that this server could not understand."}.... and {"message": "The method is not allowed for the requested URL."}
did you get the solution for this? I get this error: "Did not attempt to load JSON data because the request Content-Type was not 'application/json'."}
Cool, thank you!
I created web scraping project Download anime without going to website .. using bs4 and requests want .. code please reply
In my opinion, FastAPI is easier than Flask for this.
I get error in the line -d "title=something" -X PUT
A key error
Error code is 304
It does not go to any other function other than "get"
same
Yes, the problem is you need to send also the header with content-type and content-length. You can use postman.
@@codingtiptricks i just installed an older version of flask
@@Majed_ashraf That's one solution, but it's better to work with the latest stuff. There is a reason why they want the content-length to be included in the header now
U can do a django course
Do it on FastAPI bro 🧐🧐
10:58
3:18
DRF (Django Rest Framework) is better!
by the way, Matlab is not a language.:)
but nice video
plz make a video on machine learning project API making in flask
very good
Need Django
Ur the Best
🙃
Didn't mention how to create new project, add flask interpreter