Python FastAPI Tutorial: Build a REST API in 15 Minutes

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 มิ.ย. 2024
  • Learn how to install and build your first app with FastAPI (a high-performance web framework for Python).
    In this tutorial, you'll learn how to instal FastAPI, and use it to create a new app. Learn how to define routes, handle errors, use request and path parameters, validating data with Pydantic models, modelling responses, and how to use the interactive documentation.
    🔗 Code: github.com/pixegami/simple-fa...
    🔗 FastAPI: fastapi.tiangolo.com/
    📚 Chapters
    00:00 Why Use FastAPI?
    00:49 Install and Get Started with FastAPI
    02:22 GET and POST Routes
    05:27 Handling HTTP Errors
    06:48 JSON Request and Path Parameters
    10:38 Response Models
    11:42 Interactive Documentation
    13:31 FastAPI vs Flask
    #pixegami #fastapi

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

  • @xsamueljr
    @xsamueljr 9 หลายเดือนก่อน +11

    I literally just used FastAPI from reading the official documentation. I haven't even started the video, but I'm sure it will be perfect. Thank you.

  • @francescoanastasio2021
    @francescoanastasio2021 4 หลายเดือนก่อน +8

    Nice video, straight to the point, no fussing around, this channel deserves a subscription

    • @pixegami
      @pixegami  3 หลายเดือนก่อน +1

      Thank you!

  • @pablomunsey
    @pablomunsey 11 วันที่ผ่านมา

    Very well explained and done; detail information is provided, and the pace is perfect (considering I can pause and rewind). High quality. I've seen some of your other videos, and your talented at teaching!

  • @Sam-qf7hk
    @Sam-qf7hk 5 หลายเดือนก่อน +4

    Dudeeeeee. Your bite sized lessons are perfect! Awesome work, you're doing!

    • @pixegami
      @pixegami  5 หลายเดือนก่อน +1

      Thank you :) Glad you enjoy them!

  • @user-cu7jf8fk4o
    @user-cu7jf8fk4o 3 หลายเดือนก่อน +1

    Nice video, straight to the point. Cover a lot in 15 min.

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

    This really is one of the most useful and well structured tutorials (on any topic) I have ever seen. You have won yourself a big fan.

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

      Thank you! Really makes me happy to hear that.

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

    Fantastic tutorial, it's accessable and information dense with great coverage. Thank you!

  • @akosbalint3485
    @akosbalint3485 4 หลายเดือนก่อน +2

    Nice beginner tutorial. Thank you!

    • @pixegami
      @pixegami  3 หลายเดือนก่อน +1

      Glad it was helpful!

  • @JosephLiaw
    @JosephLiaw 6 หลายเดือนก่อน +3

    very clear bro, nice work!

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

      Thank you! Cheers!

  • @nathanielvolk515
    @nathanielvolk515 6 หลายเดือนก่อน +2

    Brilliant tutorial!!! Thanks!

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

      Glad it was helpful!

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

    Thank you! very nice explanation of FastAPI. Keep up the great work!

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

      Glad you enjoyed it!

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

    Nice, simple easy to grasp

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

      Glad it helped!

  • @Summer-of8zk
    @Summer-of8zk 9 หลายเดือนก่อน +1

    I like your videos! i'm learning python currently and NN architecture.

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

      Glad you like them! Python is perfect for NN work.

  • @BlackSouL24
    @BlackSouL24 9 หลายเดือนก่อน +3

    Much needed one

  • @allenplastic169
    @allenplastic169 29 วันที่ผ่านมา +1

    nice voice, good content organization and good presentation.
    thank you.

    • @pixegami
      @pixegami  28 วันที่ผ่านมา

      Thank you, I appreciate your comment!

  • @gabrielshiu
    @gabrielshiu 8 หลายเดือนก่อน +2

    Fantastic tutorial! How do your JSON's look so good in your browser?

    • @pixegami
      @pixegami  8 หลายเดือนก่อน +2

      Easy! Just add a "JSON" extension to your browser. The one I'm using in Chrome is called "JSON Formatter".

  • @csIn84
    @csIn84 5 หลายเดือนก่อน +1

    My only critique: next.js is React with Nest, doesn't require an external API.
    Fantastic intro video!

    • @pixegami
      @pixegami  5 หลายเดือนก่อน +1

      That's true - although I think this more geared at people who want to build a back-end with Python. I still think NextJS is the best frontend for a Python API (even if it has its own backend capabilities).

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

      @@pixegami Obviously not understanding. If you want a "NextJS" feel in the front-end, go straight to React. If you want it to be more performant (and slightly less supported by targeted libraries), go with SolidJS.
      There's literally no reason to go with NextJS if you want a Python/C#/Java/etc. backend that isn't JavaScript based.

  • @Sam-oi3hw
    @Sam-oi3hw 25 วันที่ผ่านมา +1

    thaks

  • @qazyhn94
    @qazyhn94 7 หลายเดือนก่อน +2

    this is a very cool python channel i am subscribed!

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

      Thank you and welcome!

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

    is there any library which will help me create CRUD webapp. I tried streamlit but I update all the data which takes long. I want something event driven.

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

      There's limited options in Python right now. I think Django is probably the most popular end-to-end framework, but I don't like it because you can't run it serverlessly.
      I tend to just use a NextJS (or some other Javascript) frontend with my FastAPI.

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

    why are you using the terminal as wel ? cant you use the browser ?

  • @kevinthomas3007
    @kevinthomas3007 9 หลายเดือนก่อน +1

    How can this be configured to run under IIS ?

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

      Hmm, sorry I'm not familiar with how to use IIS :(

  • @ryanperkins1525
    @ryanperkins1525 16 วันที่ผ่านมา +1

    you cut and paste a little bit too fast...

    • @pixegami
      @pixegami  13 วันที่ผ่านมา

      I've received that feedback a few times, I'll try to slow it down a bit :)

  • @bharathsai8470
    @bharathsai8470 19 วันที่ผ่านมา

    arey erripooka first virtual environment create cheskomani cheppu, tala peekoni sachha

    • @somuega1683
      @somuega1683 19 วันที่ผ่านมา

      😂

    • @ketankumar5689
      @ketankumar5689 14 วันที่ผ่านมา

      it's okay bro..the purpose was to demonstrate rest api usage 😂. Control !