Python API Developments

From code to deployment – learn Python APIs fundamentals and make your apps unstoppable.

(PYTHON-API.AJ1) / ISBN : 978-1-64459-452-0
Lessons
Lab
TestPrep
AI Tutor (Add-on)
Get A Free Trial

About This Course

Are you feeling discouraged because your apps aren’t communicating?

Get inspired again with our Python API Development course. It dives into building secure, scalable APIs with Python and Flask, connecting your code to powerful databases, and throwing in features like user authentication, email confirmation, and image handling. 

By the time you’re done, you’ll not only understand APIs – you’ll own them! 

Skills You’ll Get

  • Build RESTful APIs using Python and Flask.
  • Master HTTP methods and status codes.
  • Configure secure endpoints with Flask-JWT-Extended.
  • Implement database manipulation with SQLAlchemy and ORM.
  • Design and manage data models with Marshmallow for serialization.
  • Integrate email services like Mailgun for user activation.
  • Create image upload and manipulation features with Flask-Uploads and Pillow.
  • Optimize API performance using caching and rate-limiting techniques.
  • Deploy applications to Heroku and manage environment variables.
  • Test API endpoints using tools like curl, httpie, and Postman.
  • Use JWT and refresh tokens to develop a user authentication system.
  • Retrieve data using pagination, search, and sorting. 
  • Build a complete recipe management application from scratch.

1

Preface

  • About the Course
2

Your First Step

  • Introduction
  • Understanding API
  • RESTful API
  • HTTP Protocol
  • HTTP Methods and CRUD
  • The JSON Format
  • HTTP Status Codes
  • Open API
  • The Flask Web Framework
  • Building a Simple Recipe Management Application
  • Using curl or httpie to Test All the Endpoints
  • Postman
  • Summary
3

Starting to Build Our Project

  • Introduction
  • What is Flask-RESTful?
  • Virtual Environment
  • Creating a Recipe Model
  • Configuring Endpoints
  • Making HTTP Requests to the Flask API Using curl and httpie
  • Summary
4

Manipulating a Database with SQLAlchemy

  • Introduction
  • Databases
  • SQL
  • ORM
  • Defining Our Models
  • Password Hashing
  • Summary
5

Authentication Services and Security with JWT

  • Introduction
  • JWT
  • Flask-JWT-Extended
  • Designing the Methods in the Recipe Model
  • Refresh Tokens
  • The User Logout Mechanism
  • Summary
6

Object Serialization with marshmallow

  • Introduction
  • Serialization versus Deserialization
  • marshmallow
  • A Simple Schema
  • UserSchema Design
  • RecipeSchema Design
  • The PATCH Method
  • Summary
7

Email Confirmation

  • Introduction
  • Mailgun
  • User Account Activation Workflow
  • HTML Format Email
  • Summary
8

Working with Images

  • Introduction
  • Building the User Avatar Function
  • Flask-Uploads
  • Image Resizing and Compression
  • Introduction to Pillow
  • Summary
9

Pagination, Searching, and Ordering

  • Introduction
  • Pagination
  • Paginated APIs
  • Recipe Searching
  • Sorting and Ordering
  • Summary
10

Building More Features

  • Introduction
  • Caching
  • Flask-Caching
  • API Rate Limiting
  • Flask-Limiter
  • Summary
11

Deployment

  • Introduction
  • Deployment
  • Comparing SaaS, PaaS, and IaaS
  • The Heroku Platform
  • Configuration Handling in Smilecook
  • Heroku Application
  • Heroku Add-Ons
  • Setting Up Environment Variables for the Heroku App
  • Setting Up Variables in Postman
  • Setting Up the Front-end Interface to Work with the Smilecook API
  • Summary

1

Your First Step

  • Building a Flask Application Using PyCharm
  • Managing Recipes with Flask
2

Starting to Build Our Project

  • Analyzing the Recipe Model and Testing its Endpoints
3

Manipulating a Database with SQLAlchemy

  • Using Flask-Migrate to Build a Database Upgrade Script
4

Authentication Services and Security with JWT

  • Analyzing a User Login Function
  • Analyzing the Logout Function
5

Object Serialization with marshmallow

  • Using marshmallow to Validate the User Data
  • Analyzing RecipeSchema
6

Working with Images

  • Adding the avatar_image Attribute to the User Model
7

Deployment

  • Analyzing How to Segregate Application Configura...ween the Development and Production Environments

Any questions?
Check out the FAQs

Got doubts? Learn more about our Python API Development course.

Contact Us Now

A little Python knowledge will go a long way, but if you’re familiar with basic API programming concepts, you’ll catch on quickly. 

If you’re new to Python, we recommend brushing up on the basics before jumping in, but we’ll guide you through everything you need to know. 

Absolutely! You’ll be building a complete, fully functional recipe management application throughout the Python API course. This hands-on project will teach you everything from building your API to deploying it.

You’ll be working with Python, Flask, SQLAlchemy, Flash-JWT-Extended, marshmallow, and a bunch of other libraries to help you build and secure your APIs.

You’ll also get comfortable with Postman, curl, httpie for testing and tools like Mailgun for email services.

We’ll show you how to test your APIs using curl, httpie, and Postman. You’ll learn to send HTTP requests to your endpoints and make sure everything is working perfectly.

Definitely! By the end of the course, you’ll know how to implement secure authentication with JWT, manage login/logout processes, and protect your API from unauthorized access.

After completing this Python API training, you can apply for the following roles: 

  • Backend developer
  • API developer 
  • Full-stack developer 
  • Python developer
  • Software engineer
  • Web developer
  • DevOps engineer
  • Database engineer 
  • Cloud engineer 
  • Technical support engineer

Related Courses

All Course
scroll to top