Create A Python API in 12 Minutes

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 พ.ย. 2024

ความคิดเห็น • 173

  • @TechWithTim
    @TechWithTim  ปีที่แล้ว +21

    Rapidly build and deploy APIs in seconds with DreamFactory ! bit.ly/3M1TAP7

    • @blisterj
      @blisterj 7 หลายเดือนก่อน +3

      not another monthly subscription app

  • @scrung
    @scrung ปีที่แล้ว +42

    An API is just an interface of callable functions. It can be a code library that simplifies some complex tasks, a web API (which is what this video talks about) or a bunch of functions that a running process on your computer exposes for other programs to interact with

  • @ban_droid
    @ban_droid ปีที่แล้ว +115

    next video should be on how to deploy the sites, especially using free services like pythonanywhere

  • @MeerSuri
    @MeerSuri ปีที่แล้ว +85

    This definition of API is completely in the context of web development. There are lots of non web based APIs provided by python packages for things like machine learning, scientific computing etc. and distinguishing between the two at the start of the video would be helpful for people from non web based backgrounds.

    • @TechWithTim
      @TechWithTim  ปีที่แล้ว +41

      Actually that’s a good point, an oversight from me, thanks for the feedback!

    • @jaylooppworld381
      @jaylooppworld381 ปีที่แล้ว +1

      i was about to say the same. The video is great but not usefull for all purposes

    • @cuongbang7721
      @cuongbang7721 ปีที่แล้ว +5

      Yeah, more like "REST API" 🙂

    • @God0f0dd
      @God0f0dd ปีที่แล้ว +2

      I was wondering the same thing… the notion of an API in computer science predates the internet by many, many years. All that low level stuff the browser is doing so users can run web apps? Yeah, generally exposed through platform API. 😊

    • @upenyuhlangabeza7467
      @upenyuhlangabeza7467 3 หลายเดือนก่อน

      I want to know Api for machine learning. Does anyone have good resources for it

  • @ismailibrahim879
    @ismailibrahim879 ปีที่แล้ว +33

    thank you for being a huge part of the tech industry.. we appreciate you.

  • @josecintron85
    @josecintron85 ปีที่แล้ว +9

    great video, explain the concept in a simple manner, no fuzz, no-frills. I wish a video like this existed when I created my first API a couple of years ago.

  • @hitmanLis
    @hitmanLis 8 หลายเดือนก่อน +5

    just love that you get to point fast and cover just enough details to get people going! Bravo!

  • @URY-z3g
    @URY-z3g ปีที่แล้ว +13

    Great presenter for every level learner! Your kind of tech people are rare. You are not only a outstanding performer in your profession but also a great presenter well organized and 100% clarity.

    • @TechWithTim
      @TechWithTim  ปีที่แล้ว +3

      Appreciate that so much!

    • @mriduln7939
      @mriduln7939 7 วันที่ผ่านมา

      True

  • @sasakanjuh7660
    @sasakanjuh7660 ปีที่แล้ว +58

    Nice video, as always, though I'd just suggest making a virtual environment (I know you know this, but the people watching/following the tutorial might not), especially since you're using python, so it's super easy :)

  • @panic_seller
    @panic_seller ปีที่แล้ว +1

    6 Years experience in every aspect computing and technology but somehow I never came across API development, very interesting. I've just been calling and calling them but never writing them

  • @loveafinni
    @loveafinni 6 หลายเดือนก่อน +1

    Very great start to building APIs with Python. Thanks Tim!

  • @JorgeEscobarMX
    @JorgeEscobarMX ปีที่แล้ว +1

    Ohhhh Iwatched it already, I'm giving a rewatch to it and look for a flask course. I can think of making my python scripts accessible from the web. Thats a super power.

  • @DreamfactorySoftware
    @DreamfactorySoftware ปีที่แล้ว +5

    Thanks for featuring DreamFactory in this video! Keep up the great work! 👍😊

  • @nyosgomboc2392
    @nyosgomboc2392 ปีที่แล้ว +4

    Nice, simple, and right-to-the-point tutorial.

  • @TdukeTduke
    @TdukeTduke ปีที่แล้ว +4

    The delivery of the information was very clear, but I had difficulty understanding the "why" behind a lot of things you did in the video.

  • @cody_codes_youtube
    @cody_codes_youtube ปีที่แล้ว +17

    This was such a great explanation of an API. Great editing too! Well done

  • @hinahammad1047
    @hinahammad1047 10 หลายเดือนก่อน +1

    Bro really taught web development in python in 12 minutes

  • @SaschaJanetschek
    @SaschaJanetschek ปีที่แล้ว

    No idea what you did there, since it's my first time using Flask, but it works. Thank you

  • @kevintfry
    @kevintfry หลายเดือนก่อน

    I like all of Tech's videos.... However,
    I think the main take away from the comments is that the information is dijointed and confused. First, we have to accept that this is a advertisement for paid content and that this is a sponsored video. This is all very acceptable.
    The takeaway is that the content is created to give the viewer the vocabulary around Web-AP. This is not meant to be a roadmap to creating a web-api within an application. The only criticism is that the producers and writers used advanced coding techniques that do not make it easy for the intended audience to follow the workflow. This is not saying that a viewer should be able to code an web-api, its meant that the user can not follow the code workflow.
    In short, the writers could give a "what to expect" section on the front and make this video accessible.

  • @nargesabdolifard
    @nargesabdolifard 2 หลายเดือนก่อน

    Thank you so much for this amazing video! Very clear and easy to follow. Keep up the great work!

  • @RaedMatti-m9v
    @RaedMatti-m9v 2 หลายเดือนก่อน

    Great introduction! I really appreciate it!

  • @Praxama
    @Praxama ปีที่แล้ว +1

    sweet video dude,, you've honestly been helping me for like 4 years at least now with Python tutorials and school. I want to start getting into the field now but I dont know how to start. Thank you for your guides

  • @jeromesimms
    @jeromesimms ปีที่แล้ว +5

    Hey Tim, in this video you looked at creating APIs with Flask and the way it is done is mostly with functions and decorators but at the end of the video there was a recommendation to your full Flask API video. When I watched the full Flask API video it seemed to be using class based views, or just a completely different style to what is showed in the video. So could you make a new updated longer form tutorial on using Flask for creating APIs and in it could you discuss about whether to use classes or functions with annotations and if we should use one when we should. Thanks for this vid because I was really happy to learn how to get a simple API up and running with Python.

    • @chisomedoka5651
      @chisomedoka5651 6 หลายเดือนก่อน

      I watched that video first and I was so confused before coming here

  • @muhammadmemon2394
    @muhammadmemon2394 4 หลายเดือนก่อน

    Simple and easy video. The video helped me debug my code! Thanks a lot!

  • @arpitkumar4525
    @arpitkumar4525 8 หลายเดือนก่อน

    Simple and to the point

  • @yerneroneroipas8668
    @yerneroneroipas8668 ปีที่แล้ว +1

    Great tutorial, followed along and it was easy to understand. I guess a great follow up would be a video explaining how to use this with a real example.

  • @sohamshah4666
    @sohamshah4666 ปีที่แล้ว

    I was just thinking i will be need like this content .....and at same time you posted what a great time thanks for this tim very helpful .....i am working on projects flask

  • @dr.dark.flames
    @dr.dark.flames ปีที่แล้ว +1

    Damn i remember when u had 20k. Time flies

  • @farid5347
    @farid5347 ปีที่แล้ว

    Thank you so much Tim for your lessons! You helped me a lot to know more about Python amenities

  • @learnhumanity6701
    @learnhumanity6701 7 หลายเดือนก่อน

    Awesome Explanation❤

  • @TheTransfix
    @TheTransfix 4 หลายเดือนก่อน

    Best explanation I've seen yet. Everywhere else they speak of waiters and what not... This is it simple and to the point...

  • @ambikeya_tech
    @ambikeya_tech 6 หลายเดือนก่อน

    Fantastic tutorial! Concise yet comprehensive. Appreciate the step-by-step approach. Simplifies Python API creation. Thank you for sharing your expertise!

  • @phillip.dustin
    @phillip.dustin ปีที่แล้ว

    Very timely video! Thank you!

  • @jkohlers
    @jkohlers 3 หลายเดือนก่อน

    great video! I repeated all your steps and it worked very well! thanks!

  • @jannisheider5340
    @jannisheider5340 8 หลายเดือนก่อน

    Thanks, its a really good Video for starting with API 👍👍👍👍

  • @ZTprentnerIT
    @ZTprentnerIT 4 หลายเดือนก่อน

    thx a lot for the great tutorial!

  • @alimihakeem841
    @alimihakeem841 ปีที่แล้ว

    Nice one Tim.. Thanks for sharing this great and wonderful content.. Hoping to see more beneficial videos on flask.

  • @360withpaul
    @360withpaul ปีที่แล้ว

    Thank you very much for sharing, very interesting topic! Keep it up 🔥

  • @yousifahmed257
    @yousifahmed257 ปีที่แล้ว

    Thank you so much. I like yours tutorials

  • @derrickk45
    @derrickk45 6 หลายเดือนก่อน

    So clear.. thanks

  • @timbrap4693
    @timbrap4693 ปีที่แล้ว +3

    Why not use FastAPI?

  • @luisvillar8320
    @luisvillar8320 ปีที่แล้ว

    Great video, just the right amount of information at the right pace, and the name should be changed to say "in 10 Minutes".

  • @Deepak.Explores-y4c
    @Deepak.Explores-y4c 4 หลายเดือนก่อน

    Can you make a playlist in depth for beginners to advance

  • @BonVoyageWorld
    @BonVoyageWorld ปีที่แล้ว

    Great video like always Tim 👍🏽🍷

  • @SnoopingAroundAyy
    @SnoopingAroundAyy 17 วันที่ผ่านมา

    Thank you

  • @Hiturion
    @Hiturion 11 หลายเดือนก่อน

    just a note: when you call the api in the url, you do not need to put "extra" between quotes. ;)

  • @manofculture9915
    @manofculture9915 ปีที่แล้ว

    I needed this vid, Thank you

  • @pungushe
    @pungushe ปีที่แล้ว

    Thank you so much for this video

  • @techcolor2106
    @techcolor2106 11 หลายเดือนก่อน

    Thank you sir!

  • @ranrin96
    @ranrin96 หลายเดือนก่อน

    so helpful!

  • @niluthonte45
    @niluthonte45 2 หลายเดือนก่อน

    Can you show post request with connecting with database, It will help full? Thank you

  • @stuartmould2694
    @stuartmould2694 ปีที่แล้ว +2

    Great vid thanks. I think you might have missed some info if you can confirm. When you demo the GET request you're using the id:123, however we don't set that up so we can't repeat the steps as you have as you have presumably already created a user in this scenario?

    • @IanWeingardt
      @IanWeingardt 10 หลายเดือนก่อน

      I have this problem too

  • @GoodBoyDanny
    @GoodBoyDanny ปีที่แล้ว +1

    This is cool, what's the price?

  • @DeNobleJr
    @DeNobleJr 3 หลายเดือนก่อน

    I love flask

  • @JorgeEscobarMX
    @JorgeEscobarMX ปีที่แล้ว

    wow, this is way easier than nodejs with expressjs.

  • @carloseduardodesouza9245
    @carloseduardodesouza9245 ปีที่แล้ว

    vary good video... Thanks

  • @getreadytotube
    @getreadytotube ปีที่แล้ว

    Thanks!

  • @mostafaghobashy2724
    @mostafaghobashy2724 ปีที่แล้ว +1

    instead of saying "underscore underscore" you can say "dunder" which is double underscore

    • @scrung
      @scrung ปีที่แล้ว +2

      problem with that is most people dont know what a dunder member is, so if you dont want to confuse the average learner then it’s better to use terms that theyll understand in the meantime

  • @GTV_367
    @GTV_367 ปีที่แล้ว

    You are a very good teacher I learn better from your ch.thanks🤞🏽

  • @JohnMichaelCagle12
    @JohnMichaelCagle12 ปีที่แล้ว

    Great video!

  • @SeriouslyTho-x8n
    @SeriouslyTho-x8n ปีที่แล้ว

    Thanks so much

  • @centralcoding
    @centralcoding ปีที่แล้ว

    Brother Tim, do you have this course with Django please???

  • @nehaagrawal7850
    @nehaagrawal7850 ปีที่แล้ว

    Great information. Thanks for sharing . How can we increase timeout for the api here as the default timeout is 1 minute ?

  • @FRANKODE
    @FRANKODE ปีที่แล้ว +1

    Which video editor do you use

  • @cnelly749
    @cnelly749 ปีที่แล้ว +6

    Should’ve made this video with FastAPI it’s much better and easier

  • @martinn1071
    @martinn1071 ปีที่แล้ว

    thanks so much. brilliat

  • @REgamesplayer
    @REgamesplayer ปีที่แล้ว +8

    GET routes part is wrong. I get 404 error despite seemingly having identical code. What is unsaid in this part is that you need to type this address. It is quite confusing at first where in the code this get-user 123?extra="hello" is referenced and why base link which your server gives you suddenly stops working.

    • @IanWeingardt
      @IanWeingardt 10 หลายเดือนก่อน

      I have the exact same problem, I'm scrolling through the comments for awnsers.

    • @ericsylvester9403
      @ericsylvester9403 2 หลายเดือนก่อน

      same here. Did you happen to get a solution? I cannot fathom, for the love of all that is holy, where 123 is coming from. Now I am debugging my first API.

    • @ericsylvester9403
      @ericsylvester9403 2 หลายเดือนก่อน +1

      nvm. got it to work. I missed the @ before app.route

  • @VasilijMaksimov
    @VasilijMaksimov ปีที่แล้ว

    Спасибо за понятное изложение материала

  • @AwesomeRandomVids
    @AwesomeRandomVids ปีที่แล้ว +4

    At 8:33, I'm getting a 404 error. My url stops at :5000 and doesn't list 'get-user' etc. I went through the code letter by letter and can't find what I might be missing. Anyone have any ideas?

    • @awesomegirl5315
      @awesomegirl5315 11 หลายเดือนก่อน +2

      I think you have to put in /get-user/123?extra="hello" in the url manually and then it works. I had the same issue.

    • @AwesomeRandomVids
      @AwesomeRandomVids 11 หลายเดือนก่อน +1

      @@awesomegirl5315 I'll give that a try, but doesn't that defeat the purpose of the code? Shouldn't it do that for you? Sorry if I sound ignorant. I am

    • @IanWeingardt
      @IanWeingardt 10 หลายเดือนก่อน

      Same problem...

  • @PA-bu5cs
    @PA-bu5cs 10 หลายเดือนก่อน +1

    Your amazing - But why do you need to have som much speed in your tutorials ? I might be the only one thinking it would be nicer to have a slower rytm...

    • @DeeFord-z1b
      @DeeFord-z1b 8 หลายเดือนก่อน

      youre not alone, i had to reduce the playback speed and he was STILL moving lightning fast lol

  • @DeeFord-z1b
    @DeeFord-z1b 8 หลายเดือนก่อน

    great video but i had to slow it down to .75 playback to keep up with what you were saying/doing, could you please slow it down for us beginners, as the info is valuable but i have to playback every 10 seconds

  • @TheBeast-lu9qm
    @TheBeast-lu9qm ปีที่แล้ว

    you got old but stil very good

  • @ShwePinle-tz8tf
    @ShwePinle-tz8tf 4 หลายเดือนก่อน

    Can you create api using python without framework like flask , diango

  • @thelifehackerpro9943
    @thelifehackerpro9943 ปีที่แล้ว

    Use fast api and create apis even faster

  • @Snowfon
    @Snowfon ปีที่แล้ว

    What keyboard do you have?

  • @donewithwork
    @donewithwork ปีที่แล้ว

    Another great video :)

  • @damilolaasepo1165
    @damilolaasepo1165 ปีที่แล้ว +3

    i tried the get part and got an error :
    The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.

    • @IanWeingardt
      @IanWeingardt 10 หลายเดือนก่อน +1

      Same error for me!

  • @amirmirzababapour6016
    @amirmirzababapour6016 ปีที่แล้ว

    nice video and the beard suits you well.

  • @warloccarlos8522
    @warloccarlos8522 ปีที่แล้ว

    Hi @TechWithTim Please recommend a SAST & DAST tool specifically for Python based web application. I am aware that for web application we can use any available tool, however I am curious for only Flask and Django based web application.

  • @memoriesxt
    @memoriesxt ปีที่แล้ว +1

    Would to do a REST API for python too?

  • @Zvend
    @Zvend ปีที่แล้ว +1

    Im not sure if thats a "my-perspective"-problem, because with Python API i actually thought u re going to teach how to write an API and not a REST APi :S
    if its not a "my-perspective"-problem, could u change the title to Rest API?

  • @superfliping
    @superfliping 6 หลายเดือนก่อน

    Whats next, show your skills? New ground level project
    1. CodeCraft Duel: Super Agent Showdown
    2. Pixel Pioneers: Super Agent AI Clash
    3. Digital Duel: LLM Super Agents Battle
    4. Byte Battle Royale: Dueling LLM Agents
    5. AI Code Clash: Super Agent Showdown
    6. CodeCraft Combat: Super Agent Edition
    7. Digital Duel: Super Agent AI Battle
    8. Pixel Pioneers: LLM Super Agent Showdown
    9. Byte Battle Royale: Super Agent AI Combat
    10. AI Code Clash: Dueling Super Agents Edition

  • @manojahlawat2881
    @manojahlawat2881 7 หลายเดือนก่อน

    way of teaching is very complex

  • @FranciscoIgnisci
    @FranciscoIgnisci ปีที่แล้ว

    Someone would tell me the configuration of the font?? I loved it

  • @wicaksonoleksono7327
    @wicaksonoleksono7327 5 หลายเดือนก่อน

    why dont you use , pipenv? how can you push this to docker image?

  • @Akgaming-games
    @Akgaming-games ปีที่แล้ว

    Hi, Can requests be used to test and not postman??

  • @FricoSimon-li6hd
    @FricoSimon-li6hd 7 หลายเดือนก่อน

    great vid

  • @ARSNAL794
    @ARSNAL794 ปีที่แล้ว

    Lean on

  • @senzocalvinshinga6532
    @senzocalvinshinga6532 9 หลายเดือนก่อน

    I wish I was this smart

  • @hhhhhhhhhhhhhhhhh159
    @hhhhhhhhhhhhhhhhh159 ปีที่แล้ว

    And why dont you implement rest into it?

  • @Otaku-Chan01
    @Otaku-Chan01 7 หลายเดือนก่อน +1

    Is there any way to change the name of C:\Users\Tim to C:\Users\Prateek, I have this problem in my laptop where it's name is 91700 and I wanna change it to prateek(my actual name)

  • @jyvben1520
    @jyvben1520 ปีที่แล้ว

    api is not only for database, can be instructing other devices to do something, might not even need a reply.

  • @mkgameing3370
    @mkgameing3370 5 หลายเดือนก่อน

    do I need to pay before using it

  • @Boghost1430
    @Boghost1430 ปีที่แล้ว

    How do you install libraries without needing a venv

  • @GlitchyGlobe
    @GlitchyGlobe ปีที่แล้ว

    Cam someone explain m3 why do we do that?

  • @muborak_oy_suhbatlari
    @muborak_oy_suhbatlari 11 หลายเดือนก่อน

    how to open dream factory admin page?

  • @AlexeyNaidiuk
    @AlexeyNaidiuk ปีที่แล้ว

    Make a tutorial on Falcon microframework

  • @HopeMichaels
    @HopeMichaels ปีที่แล้ว

    i've recently watched your TH-cam video on why random generated numbers are not really random. I have a case that i've been working on figuring out. There is a Game that produces decimal generated numbers randomly and the play is for you to predict the next number that it will generate like it gives out 2.92, 1.65, 1.04, 3.75, 6.73, 1.53 ...... it may even reach 10000.0 some times. Is there a way that i can use those previous generated numbers to predict the next numbers that it will generate?

  • @jokereenoo7025
    @jokereenoo7025 ปีที่แล้ว

    Hero❤❤❤

  • @TimeToGG
    @TimeToGG ปีที่แล้ว

    Nice.