Building RESTful Python Web Services with Flask
0.0 (0 ratings)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
2 students enrolled
Wishlisted Wishlist

Please confirm that you want to add Building RESTful Python Web Services with Flask to your Wishlist.

Add to Wishlist

Building RESTful Python Web Services with Flask

Create lightweight, maintainable, scalable, and secure web apps using the best tools and techniques
New
0.0 (0 ratings)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
2 students enrolled
Created by Packt Publishing
Last updated 9/2017
English
English [Auto-generated]
Current price: $10 Original price: $125 Discount: 92% off
5 hours left at this price!
30-Day Money-Back Guarantee
Includes:
  • 2.5 hours on-demand video
  • 1 Supplemental Resource
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
What Will I 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
View Curriculum
Requirements
  • This video course takes a straightforward approach and wastes no time in getting you started with RESTful APIs and web services. It will give you the best use cases for each framework to build great web services in Python.
Description

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.

About The Author

Gastón C. Hillar is Italian and has been working with computers since he was eight. He began programming with the legendary Texas TI-99/4A and Commodore 64 home computers in the early 80s. He has a Bachelor's degree in Computer Science (he graduated with honors) and an MBA (he graduated with an outstanding thesis). At present, Gastón is an independent IT consultant and freelance author who is always looking for new adventures around the world.

He has been a senior contributing editor at Dr. Dobb's and has written more than a hundred articles on software development topics. Gastón was also a former Microsoft MVP in technical computing. He has received the prestigious Intel® Black Belt Software Developer award eight times.

He is a guest blogger at Intel® Software Network. You can reach him at gastonhillar@hotmail.com.


Who is the target audience?
  • This video course is for web developers who have a working knowledge of Python and would like to build amazing web services by taking advantage of Python with the Flask framework. You should already have some knowledge of RESTful APIs.
Students Who Viewed This Course Also Viewed
Curriculum For This Course
32 Lectures
02:20:37
+
Developing RESTful APIs with Flask
5 Lectures 17:46

This video gives an overview of the entire course.

Preview 03:28

This video will teach us the requirements for our main resource of a message.

CRUD Operations in Flask
04:51

In this video, we will create a new lightweight Virtual environment to work with Flask and Flask-RESTful.

Setting Up the Virtual Environment with Flask
02:14

This video will teach us to borrow the code that declares useful functions and variables related to HTTP status codes to represent messages.

Declaring Status Codes for the Responses
02:44

In this video, we will create a MessageManager class that we will use to persist the MessageModel instances in an in-memory dictionary.

Using a Dictionary as a Repository
04:29
+
Working with the Flask API
4 Lectures 22:12

In this video, we will declare the methods for each supported HTTP verb to represent the collection of messages.

Preview 07:38

Learn to create the main entry point for the application and initialize it with a Flask application.

Configuring Resource Routing and Endpoints
03:50

Learn to compose and send HTTP requests with the command-line tool to install the HTTPie package.

Working with Command-Line Tool – HTTPie
06:45

In this video, we will work with one of the GUI tools we used when composing and sending HTTP requests to the Django development server-Postman.

Working with GUI Tool – Postman
03:59
+
Working with SQLAlchemy in Flask
3 Lectures 09:03

Learn to retrieve all the messages that belong to a specific message category and therefore, we will have a relationship between a message and a message category.

Preview 02:31

In this video, we will install many additional packages.

Installing Packages to Simplify our Common Tasks
03:16

Learn to create the PostgreSQL database that we will use as a repository for our API.

Creating and Configuring the Database
03:16
+
Working with Models and Blueprints in Flask
5 Lectures 32:59

In this video, we will create the models that we can use to represent and persist the message categories, messages, and their relationships.

Preview 03:53

Learn to create the Flask-Marshmallow schemas that we will use to validate, serialize, and deserialize the previously declared Category and Message models and their relationships.

Creating Schemas to Validate, Serialize, and Deserialize Models
05:57

In this video, we will create the resources that compose our main building blocks for the RESTful API.

Combining Blueprints with Resourceful Routing
12:18

Learn to create the main entry point for the Flask application named app.

Registering the Blueprint and Run Migrations
06:22

In this video, we will use the HTTPie to compose and send HTTP requests to the API.

Creating and Retrieving Related Resources
04:29
+
Improving Authentication to an API with Flask
5 Lectures 19:17

In this video, we will improve unique values in the category table.

Preview 05:13

In this video, we will see how our API is able to update a single field for an existing resource, and therefore, we provide an implementation for the PATCH method.

Updating Fields for a Resource with the PATCH Method
02:27

Learn to create a generic pagination class and we will use it to easily specify how we want large results sets to be split into individual pages of data.

Coding a Generic Pagination Class
05:14

In this video, we will learn to add the import statement for adding pagination features.

Adding Pagination Features to the API
03:52

In this video, we will install a Flask extension to make it easier for us to work with HTTP Authentication.

Understanding the Steps to Add Authentication and Permissions
02:31
+
Adding Authentication to an API with Flask
5 Lectures 19:07

In this video, we will learn to create the model that we will use to represent and persist the user.

Preview 04:28

Learn to configure the Flask-HTTPAuth extension to work with our User model to verify passwords and set the authenticated user associated with a request.

Adding Authentication to Resources
03:12

In this video, we will create users and use them to authenticate requests.

Creating Resource Classes to Handle Users
04:41

We will learn to migrate and generate the necessary table in the PostgreSQL database.

Running Migrations to Generate the User Table
03:16

In this video, we will compose and send an HTTP request to retrieve the first page of the messages without authentication credentials

Composing Requests with the Necessary Authentication
03:30
+
Testing and Deploying an API with Flask
5 Lectures 20:13

In this video, We will use nose2 to make it easier to discover and run unit tests.

Preview 02:49

In this video, we will define unit tests related to the user and message category resources.

Defining a First Round of Unit Tests
07:22

Learn to use the nose2 test running to execute all the tests we created.

Running Unit Tests with nose2
03:45

In this video, we will define additional unit tests to improve the testing coverage.

Improving Test Coverage
03:48

In this video, we will deploy cloud-native RESTful Web Services.

Understanding Strategies for Deployments and Scalability
02:29
About the Instructor
Packt Publishing
3.9 Average rating
8,175 Reviews
58,770 Students
686 Courses
Tech Knowledge in Motion

Packt has been committed to developer learning since 2004. A lot has changed in software since then - but Packt has remained responsive to these changes, continuing to look forward at the trends and tools defining the way we work and live. And how to put them to work.

With an extensive library of content - more than 4000 books and video courses -Packt's mission is to help developers stay relevant in a rapidly changing world. From new web frameworks and programming languages, to cutting edge data analytics, and DevOps, Packt takes software professionals in every field to what's important to them now.

From skills that will help you to develop and future proof your career to immediate solutions to every day tech challenges, Packt is a go-to resource to make you a better, smarter developer.

Packt Udemy courses continue this tradition, bringing you comprehensive yet concise video courses straight from the experts.