Oreilly - Building RESTful Python Web Services with Tornado
by Gastón C. Hillar | Publisher: Packt Publishing | Release Date: July 2017 | ISBN: 9781788472036
Create lightweight, maintainable, scalable, and secure web apps using the best tools and techniquesAbout This VideoDevelop RESTful Web Services using the Tornado framework in PythonConfigure and fine-tune your APIs using the best tools and techniques availableThis practical guide will help you implement complete REST-based APIs from scratchIn DetailPython 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 Tornado, 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 Tornado 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.
- Chapter 1 : Developing RESTful APIs with Tornado
- The Course Overview 00:02:25
- Designing a RESTful API to Interact with Slow Sensors and Actuators 00:04:12
- Setting Up a Virtual Environment with Tornado 00:02:22
- Declaring Status Codes for the Responses 00:02:17
- Creating the Classes That Represent a Drone 00:04:56
- Chapter 2 : Working with the Tornado Web Framework
- Defining Request Handlers 00:11:11
- Mapping URL Patterns to Request Handlers 00:01:52
- Making HTTP Requests to the Tornado API 00:01:24
- Working with Command-Line Tool - HTTPie 00:04:02
- Working with GUI Tool - Postman 00:04:09
- Chapter 3 : Working with Asynchronous Code
- Understanding Synchronous and Asynchronous Execution 00:02:55
- Refactoring Code to Take Advantage of Asynchronous Decorators 00:08:24
- Making HTTP Requests to the Tornado Non-Blocking API 00:04:25
- Chapter 4 : Testing and Deploying an API with Tornado
- Setting Up Unit Tests 00:02:43
- Defining a First Round of Unit Tests 00:04:22