REST APIs with Flask and Python in 2023 [Video]
Video
Video
$109.99
Subscription
$15.99
$10 p/m for three months
What do you get with a Packt Subscription?
This book & 7000+ ebooks & video courses on 1000+ technologies
60+ curated reading lists for various learning paths
50+ new titles added every month on new and emerging tech
Early Access to eBooks as they are being written
Personalised content suggestions
Customised display settings for better reading experience
50+ new titles added every month on new and emerging tech
Playlists, Notes and Bookmarks to easily manage your learning
Mobile App with offline access
What do you get with a Packt Subscription?
This book & 6500+ ebooks & video courses on 1000+ technologies
60+ curated reading lists for various learning paths
50+ new titles added every month on new and emerging tech
Early Access to eBooks as they are being written
Personalised content suggestions
Customised display settings for better reading experience
50+ new titles added every month on new and emerging tech
Playlists, Notes and Bookmarks to easily manage your learning
Mobile App with offline access
What do you get with Video + Subscription?
Download this video in MP4 format, plus a monthly download credit
This book & 6500+ ebooks & video courses on 1000+ technologies
60+ curated reading lists for various learning paths
50+ new titles added every month on new and emerging tech
Early Access to eBooks as they are being written
Personalised content suggestions
Customised display settings for better reading experience
50+ new titles added every month on new and emerging tech
Playlists, Notes and Bookmarks to easily manage your learning
Mobile App with offline access
What do you get with a Packt Subscription?
This book & 6500+ ebooks & video courses on 1000+ technologies
60+ curated reading lists for various learning paths
50+ new titles added every month on new and emerging tech
Early Access to eBooks as they are being written
Personalised content suggestions
Customised display settings for better reading experience
50+ new titles added every month on new and emerging tech
Playlists, Notes and Bookmarks to easily manage your learning
Mobile App with offline access
What do you get with eBook?
What do I get with Print?
Get a paperback copy of the book delivered to your specified Address*
Download this book in EPUB and PDF formats
Access this title in our online reader
DRM FREE - Read whenever, wherever and however you want
Online reader with customised display settings for better reading experience
What do I get with Print?
What do you get with video?
What do you get with video?
What do you get with Audiobook?
What do you get with Exam Trainer?
Video
$109.99
Subscription
$15.99
$10 p/m for three months
What do you get with a Packt Subscription?
This book & 7000+ ebooks & video courses on 1000+ technologies
60+ curated reading lists for various learning paths
50+ new titles added every month on new and emerging tech
Early Access to eBooks as they are being written
Personalised content suggestions
Customised display settings for better reading experience
50+ new titles added every month on new and emerging tech
Playlists, Notes and Bookmarks to easily manage your learning
Mobile App with offline access
What do you get with a Packt Subscription?
This book & 6500+ ebooks & video courses on 1000+ technologies
60+ curated reading lists for various learning paths
50+ new titles added every month on new and emerging tech
Early Access to eBooks as they are being written
Personalised content suggestions
Customised display settings for better reading experience
50+ new titles added every month on new and emerging tech
Playlists, Notes and Bookmarks to easily manage your learning
Mobile App with offline access
What do you get with Video + Subscription?
Download this video in MP4 format, plus a monthly download credit
This book & 6500+ ebooks & video courses on 1000+ technologies
60+ curated reading lists for various learning paths
50+ new titles added every month on new and emerging tech
Early Access to eBooks as they are being written
Personalised content suggestions
Customised display settings for better reading experience
50+ new titles added every month on new and emerging tech
Playlists, Notes and Bookmarks to easily manage your learning
Mobile App with offline access
What do you get with a Packt Subscription?
This book & 6500+ ebooks & video courses on 1000+ technologies
60+ curated reading lists for various learning paths
50+ new titles added every month on new and emerging tech
Early Access to eBooks as they are being written
Personalised content suggestions
Customised display settings for better reading experience
50+ new titles added every month on new and emerging tech
Playlists, Notes and Bookmarks to easily manage your learning
Mobile App with offline access
What do you get with eBook?
Download this book in EPUB and PDF formats
Access this title in our online reader
DRM FREE - Read whenever, wherever and however you want
Online reader with customised display settings for better reading experience
What do I get with Print?
Get a paperback copy of the book delivered to your specified Address*
Download this book in EPUB and PDF formats
Access this title in our online reader
DRM FREE - Read whenever, wherever and however you want
Online reader with customised display settings for better reading experience
What do I get with Print?
Get a paperback copy of the book delivered to your specified Address*
Access this title in our online reader
Online reader with customised display settings for better reading experience
What do you get with video?
Download this video in MP4 format
Access this title in our online reader
DRM FREE - Watch whenever, wherever and however you want
Online reader with customised display settings for better learning experience
What do you get with video?
Stream this video
Access this title in our online reader
DRM FREE - Watch whenever, wherever and however you want
Online reader with customised display settings for better learning experience
What do you get with Audiobook?
Download a zip folder consisting of audio files (in MP3 Format) along with supplementary PDF
What do you get with Exam Trainer?
Flashcards, Mock exams, Exam Tips, Practice Questions
Access these resources with our interactive certification platform
Mobile compatible-Practice whenever, wherever, however you want
-
Free ChapterWelcome!
-
A Full Python Refresher
- Introduction to This Section
- Variables in Python
- Solution to Coding Exercise: Variables
- String Formatting in Python
- Getting User Input
- Writing Your First Python App
- Lists, Tuples, and Sets
- Advanced Set Operations
- Solution to Coding Exercise: Lists, Tuples, and Sets
- Booleans in Python
- If Statements
- The "in" Keyword in Python
- If Statements with the "in" Keyword
- Loops in Python
- Solution to Coding Exercise: Flow Control
- List Comprehensions in Python
- Dictionaries
- Destructuring Variables
- Functions in Python
- Function Arguments and Parameters
- Default Parameter Values
- Functions Returning Values
- Solution to Coding Exercise: Functions
- Lambda Functions in Python
- Dictionary Comprehensions
- Solution to Coding Exercise: Dictionaries and Students
- Unpacking Arguments
- Unpacking Keyword Arguments
- Object-Oriented Programming in Python
- Magic Methods: ..str.. and ..repr..
- Solution to Coding Exercise: Classes and Objects
- @classmethod and @staticmethod
- Solution to Coding Exercise: @classmethod and @staticmethod
- Class Inheritance
- Class Composition
- Type Hinting in Python 3.5+
- Imports in Python
- Relative Imports in Python
- Errors in Python
- Custom Error Classes
- First-Class Functions
- Simple Decorators in Python
- The "at" Syntax for Decorators
- Decorating Functions with Parameters
- Decorators with Parameters
- Mutability in Python
- Mutable Default Parameters (and Why They Are a Bad Idea)
-
Your First REST API
-
Introduction to Docker
-
Flask-Smorest for More Efficient Development
- Data Model Improvements for Our API
- General Improvements to Our First REST API
- New Endpoints for Our First REST API
- How to Run the API in Docker with Automatic Reloading and Debug Mode
- How to Use Blueprints and MethodViews in Flask
- How to Write Marshmallow Schemas for Our API
- How to Perform Data Validation with Marshmallow
- Decorating Responses with Flask-Smorest
-
Store Data in DQL Database with SQLAlchemy
- Overview and Why Use SQLAlchemy
- How to Code a Simple SQLAlchemy Model
- How to Write One-to-Many Relationships Using SQLAlchemy
- How to Configure Flask-SQLAlchemy with Your Flask App
- How to Insert Data into a Table Using SQLAlchemy
- How to Find Models in the Database by ID or Return a 404
- How to Update Models with SQLAlchemy
- How to Retrieve List of All Models
- How to Delete Models with SQLAlchemy
- Conclusion of This Section
-
Many-to-Many Relationships with SQLAlchemy
-
User Authentication with Flask-JWT-Extended
- Who Uses the JWT?
- How to Set Up Flask-JWT-Extended with Our App
- Coding the User Model and Schema
- How to Add a Register Endpoint to the REST API
- How to Add a Login Endpoint to the REST API
- Protect Endpoints by Requiring a JWT
- JWT Claims and Authorization
- How to Add Logout to the REST API
- Request Chaining with Insomnia
- Token Refreshing with Flask-JWT-Extended
-
Database Migrations with Alembic and Flask-Migrate
-
Git Crash Course
-
Deployments with Render.com
-
Task Queues with rq and Sending Emails
- How to Send Emails with Python and Mailgun
- How to Send Emails When Users Register
- What Is a Task Queue and Setting Up a Redis Database
- How to Populate and Consume the Task Queue with rq
- How to Process Background Tasks with the rq Worker
- How to Send HTML Emails Using Mailgun and Python
- How to Deploy a Background Worker to render.com
About this
video
A REST API is an application that accepts data from clients and returns data back. For example, a REST API could accept text data from the client, such as a username and password, and return whether that is a valid user in the database.
The cover takes you through a Python refresher that will take you from the very basics to some of the most advanced features of Python—that’s all the Python you need to complete the course. Further, you will move on to create resource-based, production-ready REST APIs using Python, Flask, and popular Flask extensions.Learn to handle secure user registration and authentication with Flask. Learn to use SQLAlchemy and Flask-SQLAlchemy to easily and efficiently store resources in a database; understand the complex intricacies of deployments of Flask REST APIs.
You will also investigate essential technologies such as Git and database migrations with Alembic. Together, we will develop a REST API that not only allows clients to authenticate but also store and retrieve any data you want from a database. Learning this will help you develop any REST API that you need for your own projects!
By the end of the course, you will have understood and developed your skills in web and REST API development with Python, Flask, and Docker.
All resources and code files are placed here: https://github.com/PacktPublishing/REST-APIs-with-Flask-and-Python-in-2023
- Publication date:
- August 2017
- Publisher
- Packt
- Duration
- 12 hours 0 minutes
- ISBN
- 9781788621526
Latest Reviews
(4 reviews total)