Create A Python API in 12 Minutes

Поделиться
HTML-код
  • Опубликовано: 1 фев 2025

Комментарии • 180

  • @TechWithTim
    @TechWithTim  Год назад +24

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

    • @blisterj
      @blisterj 9 месяцев назад +3

      not another monthly subscription app

  • @scrung
    @scrung Год назад +52

    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 Год назад +121

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

  • @ChuanyiXia
    @ChuanyiXia Месяц назад +1

    12分でPythonでAPIを作成する方法について、とても有益でした。短時間で実際にAPIを作成できることができ、Flaskを使ったシンプルな実装がとてもわかりやすかったです。APIの基本的な構造やエンドポイントの作成、レスポンスの返し方など、実践的な内容を短時間で学べて非常に効率的でした。この方法を使って、今後のプロジェクトでも迅速にAPIを作成できると思います。

  • @josecintron85
    @josecintron85 Год назад +10

    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.

  • @ismailibrahim879
    @ismailibrahim879 Год назад +36

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

  • @URY-z3g
    @URY-z3g Год назад +14

    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.

  • @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 :)

  • @JorgeEscobarMX
    @JorgeEscobarMX Год назад +2

    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! 👍😊

  • @hitmanLis
    @hitmanLis 10 месяцев назад +5

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

  • @cody_codes_youtube
    @cody_codes_youtube Год назад +17

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

  • @MeerSuri
    @MeerSuri Год назад +88

    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  Год назад +43

      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 5 месяцев назад

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

  • @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 8 месяцев назад +1

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

  • @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

  • @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.

  • @SaschaJanetschek
    @SaschaJanetschek Год назад

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

  • @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 8 месяцев назад

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

  • @getreadytotube
    @getreadytotube Год назад

    Thanks!

  • @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.

  • @nargesabdolifard
    @nargesabdolifard 4 месяца назад

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

  • @ambikeya_tech
    @ambikeya_tech 9 месяцев назад

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

  • @TheTransfix
    @TheTransfix 6 месяцев назад

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

  • @farid5347
    @farid5347 Год назад

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

  • @hinahammad1047
    @hinahammad1047 Год назад +1

    Bro really taught web development in python in 12 minutes

  • @muhammadmemon2394
    @muhammadmemon2394 7 месяцев назад

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

  • @RaedMatti-m9v
    @RaedMatti-m9v 4 месяца назад

    Great introduction! I really appreciate it!

  • @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

  • @alimihakeem841
    @alimihakeem841 Год назад

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

  • @kevintfry
    @kevintfry 4 месяца назад

    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.

  • @BonVoyageWorld
    @BonVoyageWorld Год назад

    Great video like always Tim 👍🏽🍷

  • @phillip.dustin
    @phillip.dustin Год назад

    Very timely video! Thank you!

  • @learnhumanity6701
    @learnhumanity6701 10 месяцев назад

    Awesome Explanation❤

  • @jannisheider5340
    @jannisheider5340 10 месяцев назад

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

  • @360withpaul
    @360withpaul Год назад

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

  • @arpitkumar4525
    @arpitkumar4525 11 месяцев назад

    Simple and to the point

  • @yousifahmed257
    @yousifahmed257 Год назад

    Thank you so much. I like yours tutorials

  • @manofculture9915
    @manofculture9915 Год назад

    I needed this vid, Thank you

  • @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".

  • @dr.dark.flames
    @dr.dark.flames Год назад +1

    Damn i remember when u had 20k. Time flies

  • @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 Год назад +3

      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 Год назад +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 Год назад

      Same problem...

    • @Hi-ig7zt
      @Hi-ig7zt Месяц назад

      @@awesomegirl5315 Yes, you have to type it in manually. I just tried it. Thank you!

  • @REgamesplayer
    @REgamesplayer Год назад +9

    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 Год назад +1

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

    • @ericsylvester9403
      @ericsylvester9403 5 месяцев назад +1

      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 5 месяцев назад +2

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

  • @jkohlers
    @jkohlers 6 месяцев назад

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

  • @ZTprentnerIT
    @ZTprentnerIT 6 месяцев назад

    thx a lot for the great tutorial!

  • @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?

  • @Hiturion
    @Hiturion Год назад

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

  • @GTV_367
    @GTV_367 Год назад

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

  • @derrickk45
    @derrickk45 8 месяцев назад

    So clear.. thanks

  • @pungushe
    @pungushe Год назад

    Thank you so much for this video

  • @nehaagrawal7850
    @nehaagrawal7850 Год назад

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

  • @niluthonte45
    @niluthonte45 5 месяцев назад

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

  • @GoodBoyDanny
    @GoodBoyDanny Год назад +1

    This is cool, what's the price?

  • @dipakbe
    @dipakbe 6 месяцев назад

    Can you make a playlist in depth for beginners to advance

  • @PA-bu5cs
    @PA-bu5cs Год назад +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 10 месяцев назад

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

  • @carloseduardodesouza9245
    @carloseduardodesouza9245 Год назад

    vary good video... Thanks

  • @techcolor2106
    @techcolor2106 Год назад

    Thank you sir!

  • @centralcoding
    @centralcoding Год назад

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

  • @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.

  • @JohnMichaelCagle12
    @JohnMichaelCagle12 Год назад

    Great video!

  • @ranrin96
    @ranrin96 4 месяца назад

    so helpful!

  • @timbrap4693
    @timbrap4693 Год назад +3

    Why not use FastAPI?

  • @JorgeEscobarMX
    @JorgeEscobarMX Год назад

    wow, this is way easier than nodejs with expressjs.

  • @subhamgiri2000
    @subhamgiri2000 Месяц назад

    Thanks man

  • @FRANKODE
    @FRANKODE Год назад +1

    Which video editor do you use

  • @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.

  • @SnoopingAroundAyy
    @SnoopingAroundAyy 3 месяца назад

    Thank you

  • @DeeFord-z1b
    @DeeFord-z1b 10 месяцев назад

    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

  • @VasilijMaksimov
    @VasilijMaksimov Год назад

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

  • @FranciscoIgnisci
    @FranciscoIgnisci Год назад

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

  • @memoriesxt
    @memoriesxt Год назад +1

    Would to do a REST API for python too?

  • @SeriouslyTho-x8n
    @SeriouslyTho-x8n Год назад

    Thanks so much

  • @donewithwork
    @donewithwork Год назад

    Another great video :)

  • @Snowfon
    @Snowfon Год назад

    What keyboard do you have?

  • @DeNobleJr
    @DeNobleJr 5 месяцев назад

    I love flask

  • @ShwePinle-tz8tf
    @ShwePinle-tz8tf 7 месяцев назад

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

  • @Akgaming-games
    @Akgaming-games Год назад

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

  • @wicaksonoleksono7327
    @wicaksonoleksono7327 7 месяцев назад

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

  • @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?

  • @martinn1071
    @martinn1071 Год назад

    thanks so much. brilliat

  • @HopeMichaels
    @HopeMichaels Год назад

    i've recently watched your RUclips 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?

  • @amirmirzababapour6016
    @amirmirzababapour6016 Год назад

    nice video and the beard suits you well.

  • @AlexeyNaidiuk
    @AlexeyNaidiuk Год назад

    Make a tutorial on Falcon microframework

  • @thelifehackerpro9943
    @thelifehackerpro9943 Год назад

    Use fast api and create apis even faster

  • @hhhhhhhhhhhhhhhhh159
    @hhhhhhhhhhhhhhhhh159 Год назад

    And why dont you implement rest into it?

  • @Otaku-Chan01
    @Otaku-Chan01 9 месяцев назад +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)

  • @tjking9117
    @tjking9117 3 месяца назад

    Anyone know what terminal he is using? I am on Windows and my Cmd Prompt does not look like his. I am very new to coding so any advice would be appreciated.

  • @mkgameing3370
    @mkgameing3370 7 месяцев назад

    do I need to pay before using it

  • @jyvben1520
    @jyvben1520 Год назад

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

  • @Boghost1430
    @Boghost1430 Год назад

    How do you install libraries without needing a venv

  • @TheBeast-lu9qm
    @TheBeast-lu9qm Год назад

    you got old but stil very good

  • @manojahlawat2881
    @manojahlawat2881 9 месяцев назад

    way of teaching is very complex

  • @Codebyakshay
    @Codebyakshay 11 месяцев назад +2

    ys ys keep it fast 1:35 so we cant understand and follow whatever the fuck you doing well done

    • @DeeFord-z1b
      @DeeFord-z1b 10 месяцев назад

      lmao the video is great he is indeed moving toooooo fast, reduce the playback speed and you should be good

  • @jokereenoo7025
    @jokereenoo7025 Год назад

    Hero❤❤❤

  • @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

  • @himanshunanda1994
    @himanshunanda1994 Год назад

    not able to install flask tried changing the virtual environment as well
    someone if faced the same issue please help

  • @muborak_oy_suhbatlari
    @muborak_oy_suhbatlari Год назад

    how to open dream factory admin page?

  • @FricoSimon-li6hd
    @FricoSimon-li6hd 10 месяцев назад

    great vid

  • @GlitchyGlobe
    @GlitchyGlobe Год назад

    Cam someone explain m3 why do we do that?