8568  Reviews star_rate star_rate star_rate star_rate star_half

Build REST APIs with Python and Flask

The Python and Flask training course is for programming professionals seeking to understand the benefits and principles of a REST API. Learners will review the HTTP protocol and its application to...

Read More
Duration 3 days
Course Code REST-PYTH-FLASK
Available Formats Classroom

Overview

The Python and Flask training course is for programming professionals seeking to understand the benefits and principles of a REST API. Learners will review the HTTP protocol and its application to REST APIs and explore how to connect to a Postgresql or SQL Server database with Python and SQLAlchemy. The curriculum includes a review of Python Web Framework options and an overview of tools commonly used in REST API development. Learners will gain hands-on experience in building a REST API using Python, Flask, and RestX REST API framework. The course concludes with a review of options for deploying a REST API to the cloud, equipping learners with the skills to develop and deploy robust REST APIs.

Skills Gained

  • Understand the benefits and principles of a REST API
  • Review the HTTP protocol and learn how it applies to REST APIs
  • Explore how to connect to a Postgresql or SQL Server database with Python and SQLAlchemy
  • Review Python Web Framework options
  • Learn about tools commonly used when developing REST APIs
  • Build a REST API using the Python, Flask, and RestX REST API framework
  • Review options for deploying a REST API to the cloud

Prerequisites

All students should be able to comfortably write Python scripts using basic data types, program structures, and the standard Python library.

Course Details

Training Materials

All students receive comprehensive courseware covering all topics in the course. Courseware is distributed via GitHub in the form of documentation and extensive code samples. Students practice the topics covered through challenging hands-on lab exercises.

Software Requirements

Students will need a free, personal GitHub account to access the courseware and permission to install Python and Visual Studio Code on their computers. Also, students will need permission to install Python Packages and Visual Studio Extensions. If students are unable to configure a local environment, a cloud-based environment can be provided.

Development Environment (Very Quick Overview)

  • Configure VS Code for Python development
  • Code Reformatting with Black
  • Debugging Python Scripts with VS Code

Quick Review of HTTP and URLs

  • What is HTTP?
  • What are HTTP Verbs?
  • What are the parts of a URL?
  • Path Parameters
  • Query String Parameters
  • Common HTTP Headers
  • Common HTTP Status Codes

Quick Review of Databases

  • What is a Database?
  • Connecting to a Database
  • Query data from a Database
  • Modify data in a Database

Overview of Python Web Frameworks

  • Django
  • Flask
  • FastAPI

Representational State Transfer

  • What is REST?
  • HTTP Verbs and their use in REST
  • OpenAPI
  • JSON
  • Swagger

Building a REST API with Flask

  • Create an Application
  • Define a Hello World Route
  • Configure a Path Parameter
  • Configure a Query String Parameter
  • Reading Request Body
  • Writing a Response Body
  • Handling Cookies
  • Handle Errors
  • Return Specific Status Codes
  • Asynchronous Routes
  • Serving Static Files

Database Access

  • Connecting to a Database
  • Querying Data
  • Modifying Data
  • Transactions
  • SQLAlchemy
  • Running a Database with Docker

Document and Version APIs

  • Swagger
  • OpenAPI
  • Versioning

Security

  • Secure a REST API with JWT
  • Configure CORS

Cloud Deployment

  • Microservice Architecture
  • REST API Containerization
  • Running Server-Less in Azure

Schedule

FAQ

Does the course schedule include a Lunchbreak?

Classes typically include a 1-hour lunch break around midday. However, the exact break times and duration can vary depending on the specific class. Your instructor will provide detailed information at the start of the course.

What languages are used to deliver training?

Most courses are conducted in English, unless otherwise specified. Some courses will have the word "FRENCH" marked in red beside the scheduled date(s) indicating the language of instruction.

What does GTR stand for?

GTR stands for Guaranteed to Run; if you see a course with this status, it means this event is confirmed to run. View our GTR page to see our full list of Guaranteed to Run courses.

Does Ascendient Learning deliver group training?

Yes, we provide training for groups, individuals and private on sites. View our group training page for more information.

What does vendor-authorized training mean?

As a vendor-authorized training partner, we offer a curriculum that our partners have vetted. We use the same course materials and facilitate the same labs as our vendor-delivered training. These courses are considered the gold standard and, as such, are priced accordingly.

Is the training too basic, or will you go deep into technology?

It depends on your requirements, your role in your company, and your depth of knowledge. The good news about many of our learning paths, you can start from the fundamentals to highly specialized training.

How up-to-date are your courses and support materials?

We continuously work with our vendors to evaluate and refresh course material to reflect the latest training courses and best practices.

Are your instructors seasoned trainers who have deep knowledge of the training topic?

Ascendient Learning instructors have an average of 27 years of practical IT experience and have also served as consultants for an average of 15 years. To stay current, instructors spend at least 25 percent of their time learning new, emerging technologies and courses.

Do you provide hands-on training and exercises in an actual lab environment?

Lab access is dependent on the vendor and the type of training you sign up for. However, many of our top vendors will provide lab access to students to test and practice. The course description will specify lab access.

Will you customize the training for our company’s specific needs and goals?

We will work with you to identify training needs and areas of growth.  We offer a variety of training methods, such as private group training, on-site of your choice, and virtually. We provide courses and certifications that are aligned with your business goals.

How do I get started with certification?

Getting started on a certification pathway depends on your goals and the vendor you choose to get certified in. Many vendors offer entry-level IT certification to advanced IT certification that can boost your career. To get access to certification vouchers and discounts, please contact info@ascendientlearning.com.

Will I get access to content after I complete a course?

You will get access to the PDF of course books and guides, but access to the recording and slides will depend on the vendor and type of training you receive.

How do I request a W9 for Ascendient Learning?

View our filing status and how to request a W9.

Reviews

Very interactive and in-depth course that really got me ready for the industry

The platform is very intuitive and easy to navigate. Great tool for learning

Great instructor, clear and concise course. Labs were easy to follow and worked perfectly.

This was effective way to provide a ton of information in a short time period.

This course is important because we work at CSOC and it's applicable to our daily work.