Book Image

Modern Python Solutions - Part 3 [Video]

By : Steven F. Lott
Book Image

Modern Python Solutions - Part 3 [Video]

By: Steven F. Lott

Overview of this book

Python is the preferred choice of developers, engineers, data scientists, and hobbyists everywhere. It is a great scripting language that can power your applications and provide great speed, safety, and scalability. By exposing Python as a series of simple recipes, you can gain insight into specific language features in a particular context. This video will arm you with the knowledge of creating applications with flexible logging, powerful configuration, and command-line options, automated unit tests, and good documentation. You will learn to use the Flask framework for Restful APIs. You will end the course equipped with the knowledge of testing, web services, and configuration and application integration tips and tricks.
Table of Contents (3 chapters)
Chapter 2
Web Services
Content Locked
Section 5
Parsing the URL Path
The path to a resource can be quite complex. It's common in RESTful web services to use the path information to identify groups of resources, individual resources, and even relationships among resources. How can we handle complex path parsing? Let’s answer this question. - Import HTTPStatus and the additional modules - Define a global state, a route, and a view function - Define a main program that runs the server