Create A Python API in 12 Minutes

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

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

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

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

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

      not another monthly subscription app

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

    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

  • @ChuanyiXia
    @ChuanyiXia 13 дней назад

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

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

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

  • @ban_droid
    @ban_droid Год назад +119

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

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

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

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

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

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

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

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

  • @DreamfactorySoftware
    @DreamfactorySoftware Год назад +5

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

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

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

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

  • @loveafinni
    @loveafinni 7 месяцев назад +1

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

  • @nyosgomboc2392
    @nyosgomboc2392 Год назад +4

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

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

      Same problem...

    • @Hi-ig7zt
      @Hi-ig7zt 16 дней назад

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

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

    Thanks!

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

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

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

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

    • @ericsylvester9403
      @ericsylvester9403 3 месяца назад +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 3 месяца назад +2

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

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

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

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

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

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

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

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

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

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

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

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

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

    Great introduction! I really appreciate it!

  • @hinahammad1047
    @hinahammad1047 11 месяцев назад +1

    Bro really taught web development in python in 12 minutes

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

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

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

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

    Great video like always Tim 👍🏽🍷

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

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

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

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

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

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

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

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

    Simple and to the point

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

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

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

      I have this problem too

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

    Very timely video! Thank you!

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

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

    Why not use FastAPI?

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

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

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

    Awesome Explanation❤

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

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

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

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

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

    Which video editor do you use

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

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

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

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

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

    Thank you so much. I like yours tutorials

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

    Would to do a REST API for python too?

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

    thx a lot for the great tutorial!

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

    I needed this vid, Thank you

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

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

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

    So clear.. thanks

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

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

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

    How do you install libraries without needing a venv

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

    Damn i remember when u had 20k. Time flies

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

    What keyboard do you have?

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

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

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

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

    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.

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

    Great video!

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

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

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

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

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

    Thank you so much for this video

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

    Cam someone explain m3 why do we do that?

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

    so helpful!

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

    mine has error flask_app can you guys help me to setup my flask

  • @Deepak.Explores-y4c
    @Deepak.Explores-y4c 5 месяцев назад

    Can you make a playlist in depth for beginners to advance

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

    Thank you sir!

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

    vary good video... Thanks

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

    This is cool, what's the price?

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

    Another great video :)

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

    how to open dream factory admin page?

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

    And why dont you implement rest into it?

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

    Hi, I need to create an api with python to modify the banner of different servers and host, does someone have an idea about how to develop this api for a practice?
    This is new for me

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

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

    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.

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

  • @subhamgiri2000
    @subhamgiri2000 16 дней назад

    Thanks man

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

    do I need to pay before using it

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

    Thank you

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

    Thanks so much

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

    PLEASE SOMEONE HELP WHAT iS HE USNG iS THAT REPLiT? AND iF SO HOW DO i PULL UP THAT TERMiNAL ALL i HAVE iS SHELL AND SHELL DOESNT LET ME PASTE ANTHiNG

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

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

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

    thanks so much. brilliat

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

    nice video and the beard suits you well.

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

    I love flask

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

    wow, this is way easier than nodejs with expressjs.

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

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

    Mi o afonso já está a responder as perguntas, estou com dificuldades

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

  • @cnelly749
    @cnelly749 Год назад +6

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

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

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

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

    great vid

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

    Make a tutorial on Falcon microframework

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

    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

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

    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