humix
Implementing Async REST APIs in Python using FastAPI with PostgreSQL CRUD
5K views · Feb 16, 2022
In this tutorial we will implement a Python based FastAPI with PostgreSQL CRUD

The tutorial has three parts
Part 1: Workspace Setup
Part 2: Implementing Async CRUD Endpoints in FastAPI
Part 3: Performing CRUD operations using CURL

Contents:

Part 1 Workspace Setup
--------------------------------------------
(00:00) Intro
(00:32) Workspace Setup
(02:00) Install Python Modules

Part 2  Implementing Async CRUD Endpoints in FastAPI
--------------------------------------------
(04:45) Developing Async CRUD in FastAPI
(05:38) Build Connection String for PostgreSQL
(07:25) Setup SQL Alchemy Models & Engine
(09:40) Setup Pydantic Models
(10:27) Initialize FastAPI
(10:40) FastAPI CORS Setup
(12:05) Setup Databases Module
(12:25) FastAPI Events Startup Shutdown
(13:02) Implement POST to Create a new note
(16:42) Create database in PostgreSQL
(18:20) Run FastAPI using Uvicorn
(20:14) Insert a Note using CURL
(23:28) Implement GET to Retrieve list of Notes
(23:44) Implement PUT to Update note
(26:58) Implement GET to Retrieve a Note by ID
(29:40) Implement DELETE to permanently delete a Note given its ID
(32:31) A note on --reload arg for Uvicorn

Part 3 Performing CRUD operations using CURD
--------------------------------------------
(33:13) Add Note using CURL
(33:44) Get Notes collection using CURL
(34:26) Get Note by id using CURL
(37:44) Update Note using CURL
(38:44) Delete Note using CURL


Detailed Article: https://bit.ly/2O6onvp
Full Source Code: https://github.com/windson/fastapi/tree/fastapi-postgresql-azure-deploy


#FastAPI #PostgreSQL #Async #FastAPICRUD #RESTAPI
------------------------------------------------------------------------------------------------

πŸ†‚πŸ†„πŸ…±πŸ†‚πŸ…²πŸ†πŸ…ΈπŸ…±πŸ…΄ to πŸ†ƒπŸ†„πŸ†ƒπŸ…»πŸ…ΈπŸ…½πŸ…ΊπŸ†‚ channel if you like the content http://bit.ly/2Uc0YNk
πŸ†‚πŸ†„πŸ…±πŸ†‚πŸ…²πŸ†πŸ…ΈπŸ…±πŸ…΄: http://bit.ly/2Uc0YNk

(っ◔◑◔)っ Share this video with your friends and colleagues and let them know you are upto date with latest tech-trends

Thanks πŸ™

Follow us to keep updated with latest trends in Tech: 

Facebook: http://bit.ly/2Djmd6l
Twitter: http://bit.ly/2Ol9ZQT
Instagram: http://bit.ly/2pV4cYY

Support: 
(Appreciate your Generosity: πŸ’Έ)
PayPal: http://bit.ly/2NZgVma 
ETH: 0x0689Ecd747d6F4eA9CE491aD0b1734fEe62b2229
see more

Comments

Latest Videos
place
7:48
play
How to Create a CentOS 7.5 Virtual Machine on Azure
How to Create a CentOS 7.5 Vir...
How to Create a CentOS 7.5 Virtual Machine on Azure
1 views
place
5:55
play
Installing CentOS 8.1 OS GUI on Oracle VM Virtualbox on Wind...
Installing CentOS 8.1 OS GUI o...
Installing CentOS 8.1 OS GUI on Oracle VM Virtualbox on Windows 10 OS
779 views
place
14:43
play
How to manage Python projects using Virtualenv
How to manage Python projects ...
How to manage Python projects using Virtualenv
339 views
place
5:22
play
Installing Postgres SQL on Windows PC
Installing Postgres SQL on Win...
Installing Postgres SQL on Windows PC
507 views
place
5:05
play
How to add 301 Redirect from non www to www for Wordpress
How to add 301 Redirect from n...
How to add 301 Redirect from non www to www for Wordpress
107 views
place
21:03
play
How to Create ASP.NET Core 3.0 React SPA with Secure Members...
How to Create ASP.NET Core 3.0...
How to Create ASP.NET Core 3.0 React SPA with Secure Membership using MySQL Database in 20 Minutes
211 views
place
6:03
play
Setup Visual Studio Code for Python Development
Setup Visual Studio Code for P...
Setup Visual Studio Code for Python Development
744 views
place
6:37
play
Deploy FastAPI on Heroku in just 6 minutes
Deploy FastAPI on Heroku in ju...
Deploy FastAPI on Heroku in just 6 minutes
3K views
place
16:27
play
How to Configure ASP.NET Core 3.1 Angular SPA, Identity Serv...
How to Configure ASP.NET Core ...
How to Configure ASP.NET Core 3.1 Angular SPA, Identity Server 4 (Authentication) with PostgreSQL
139 views
place
24:40
play
Hosting Wordpress On Azure (Step by Step Tutorial)
Hosting Wordpress On Azure (St...
Hosting Wordpress On Azure (Step by Step Tutorial)
1K views