Python FastAPI Tutorial: Build a REST API in 15 Minutes

Поделиться
HTML-код
  • Опубликовано: 31 май 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

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

  • @xsamueljr
    @xsamueljr 8 месяцев назад +10

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

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

    • @pixegami
      @pixegami  3 месяца назад +1

      Thank you!

  • @Sam-qf7hk
    @Sam-qf7hk 4 месяца назад +3

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

    • @pixegami
      @pixegami  4 месяца назад +1

      Thank you :) Glad you enjoy them!

  • @allenplastic169
    @allenplastic169 5 дней назад +1

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

    • @pixegami
      @pixegami  4 дня назад

      Thank you, I appreciate your comment!

  • @KoynoErikov
    @KoynoErikov 2 месяца назад +1

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

      Thank you! Really makes me happy to hear that.

  • @user-cu7jf8fk4o
    @user-cu7jf8fk4o 2 месяца назад

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

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

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

  • @JosephLiaw
    @JosephLiaw 5 месяцев назад +3

    very clear bro, nice work!

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

      Thank you! Cheers!

  • @Andromeda26_
    @Andromeda26_ 2 месяца назад +1

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

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

      Glad you enjoyed it!

  • @nathanielvolk515
    @nathanielvolk515 5 месяцев назад +2

    Brilliant tutorial!!! Thanks!

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

      Glad it was helpful!

  • @akosbalint3485
    @akosbalint3485 3 месяца назад +2

    Nice beginner tutorial. Thank you!

    • @pixegami
      @pixegami  3 месяца назад +1

      Glad it was helpful!

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

    Nice, simple easy to grasp

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

      Glad it helped!

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

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

    Much needed one

  • @csIn84
    @csIn84 4 месяца назад +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.

  • @ammadkhan4687
    @ammadkhan4687 Месяц назад +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.

  • @gabrielshiu
    @gabrielshiu 7 месяцев назад +2

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

    • @pixegami
      @pixegami  7 месяцев назад +2

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

  • @qazyhn94
    @qazyhn94 6 месяцев назад +2

    this is a very cool python channel i am subscribed!

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

      Thank you and welcome!

  • @Sam-oi3hw
    @Sam-oi3hw 22 часа назад

    thaks

  • @kevinthomas3007
    @kevinthomas3007 8 месяцев назад +1

    How can this be configured to run under IIS ?

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

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