Building RESTful Python Web Services with Flask

Building RESTful Python Web Services with Flask

English | MP4 | AVC 1920×1080 | AAC 48KHz 2ch | 2h 20m | 527 MB

Create lightweight, maintainable, scalable, and secure web apps using the best tools and techniques

Python is the language of choice for millions of developers worldwide, due to its gentle learning curve as well as its vast applications in day-to-day programming. It builds great web services in the RESTful architecture. This video will show you the best tools you can use to build your own web services. Learn how to develop RESTful APIs using the popular Python frameworks and all the necessary stacks with Python and Flask, combined with related libraries and tools. We will delve into the framework for building various web services. We will show you everything required to successfully develop RESTful APIs with the Flask framework, such as request handling, URL mapping, serialization, validation, authentication, authorization, versioning, databases, and asynchronous callbacks. At the end of the framework, we will add authentication and security to the RESTful APIs and prepare tests for them. By the end of the video, you will have a deep understanding of the stacks needed to build RESTful web services.

What You Will Learn

  • Develop complex RESTful APIs from scratch with Python, with and without data sources
  • Add authentication and permissions to a RESTful API built in the Flask framework
  • Map URL patterns to request handlers and check how the API works
  • Profile an existing API and refactor it to take advantage of asynchronous code
Table of Contents

01 The Course Overview
02 CRUD Operations in Flask
03 Setting Up the Virtual Environment with Flask
04 Declaring Status Codes for the Responses
05 Using a Dictionary as a Repository
06 Working with Resourceful Routing
07 Configuring Resource Routing and Endpoints
08 Working with Command-Line Tool – HTTPie
09 Working with GUI Tool – Postman
10 Designing a RESTful API with a PostgreSQL Database
11 Installing Packages to Simplify our Common Tasks
12 Creating and Configuring the Database
13 Creating Models with Their Relationships
14 Creating Schemas to Validate, Serialize, and Deserialize Models
15 Combining Blueprints with Resourceful Routing
16 Registering the Blueprint and Run Migrations
17 Creating and Retrieving Related Resources
18 Improving Unique Constraints in the Models
19 Updating Fields for a Resource with the PATCH Method
20 Coding a Generic Pagination Class
21 Adding Pagination Features to the API
22 Understanding the Steps to Add Authentication and Permissions
23 Adding a User Model
24 Adding Authentication to Resources
25 Creating Resource Classes to Handle Users
26 Running Migrations to Generate the User Table
27 Composing Requests with the Necessary Authentication
28 Setting Up Unit Tests
29 Defining a First Round of Unit Tests
30 Running Unit Tests with nose2
31 Improving Test Coverage
32 Understanding Strategies for Deployments and Scalability