Python FastAPI Tutorial: Build a REST API in 15 Minutes

Поділитися
Вставка
  • Опубліковано 20 чер 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

  • @pablomunsey
    @pablomunsey 6 днів тому

    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!

  • @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 3 місяці тому +8

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

  • @Sam-qf7hk
    @Sam-qf7hk 5 місяців тому +4

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

    • @pixegami
      @pixegami  4 місяці тому +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 3 місяці тому +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 Місяць тому +1

    Nice, simple easy to grasp

    • @pixegami
      @pixegami  Місяць тому +1

      Glad it helped!

  • @Summer-of8zk
    @Summer-of8zk 9 місяців тому +1

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

    • @pixegami
      @pixegami  8 місяців тому

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

  • @allenplastic169
    @allenplastic169 24 дні тому +1

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

    • @pixegami
      @pixegami  24 дні тому

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

  • @BlackSouL24
    @BlackSouL24 9 місяців тому +3

    Much needed one

  • @csIn84
    @csIn84 5 місяців тому +1

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

    • @pixegami
      @pixegami  4 місяці тому +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 4 місяці тому

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

  • @qazyhn94
    @qazyhn94 7 місяців тому +2

    this is a very cool python channel i am subscribed!

    • @pixegami
      @pixegami  7 місяців тому

      Thank you and welcome!

  • @Sam-oi3hw
    @Sam-oi3hw 20 днів тому +1

    thaks

  • @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  Місяць тому +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 12 днів тому

    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  8 місяців тому

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

  • @ryanperkins1525
    @ryanperkins1525 11 днів тому +1

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

    • @pixegami
      @pixegami  8 днів тому

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

  • @bharathsai8470
    @bharathsai8470 14 днів тому

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

    • @somuega1683
      @somuega1683 14 днів тому

      😂

    • @ketankumar5689
      @ketankumar5689 9 днів тому

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