
Introduction to Tornado
Modern Web Applications with Python
O'Reilly (Publisher)
1st Edition
Published on 13. April 2012
Book
134 pages
978-1-4493-0907-7 (ISBN)
Description
Walk through the basics of Tornado, the high-performance web server known for its speed, simplicity, and scalability on projects large and small. With this hands-on guide, you'll learn how to use Tornado's acclaimed features by working with several example applications. You also get best practices for using Tornado in the real world.
Are you interested in creating a scalable social application, real-time analytics engine, or RESTful API-all with the power and simplicity of Python? This book shows you why Tornado is fantastic choice for writing powerful applications that are simple to create, extend, and deploy.
* Learn how to use Tornado's lightweight and flexible templating language
* Extend templates to repurpose headers, footers, layout grids, and other content
* Use persistent storage like MongoDB to store, serve, and edit dynamic content
* Explore Tornado's ability to make asynchronous web requests
* Secure your application against cookie and request vulnerabilities
* Authenticate with external services, using Tornado's auth module
* Adopt deployment strategies that help harden your application and increase request throughput
More details
Language
English
Place of publication
Sebastopol
United States
Product notice
Paperback (trade)
Unsewn / adhesive bound
Illustrations
Illustrations
Dimensions
Height: 231 mm
Width: 179 mm
Thickness: 15 mm
Weight
236 gr
ISBN-13
978-1-4493-0907-7 (9781449309077)
Schweitzer Classification
Other editions
Additional editions

E-Book
03/2012
1st Edition
O'Reilly
€16.99
Available for download

E-Book
03/2012
1st Edition
O'Reilly
€15.99
Available for download
Persons
Mike is CTO and co-founder of Socialbomb, he's worked with companies like Fisher-Price, HBO and Pepsico to build social applications and platforms that connect users with their friends, their devices, and the world around them. Prior to starting up Socialbomb, Mike developed installations, sites, and games for Unified Field and the Institute of Play. Allison Parrish is an artist and programmer, currently residing in Brooklyn. She has ten years of professional programming experience, with an emphasis on programming for the web. Brendan Berg has more than five years of experience creating web and mobile applications. He has spent the past two years designing and developing cloud infrastructure and APIs as Chief Software Architect of Socialbomb.
Content
Preface;
Conventions Used in This Book;
Using Code Examples;
SafariĀ® Books Online;
How to Contact Us;
Acknowledgements;
Chapter 1: Introduction;
1.1 What Is Tornado?;
1.2 Simple Web Services;
Chapter 2: Forms and Templates;
2.1 Simple Example: Poem Maker Pro;
2.2 Template Syntax;
2.3 Complete Example: The Alpha Munger;
Chapter 3: Extending Templates;
3.1 Blocks and Substitutions;
3.2 UI Modules;
3.3 Summing Up;
Chapter 4: Databases;
4.1 Basic MongoDB Operations with PyMongo;
4.2 A Simple Persistent Web Service;
4.3 Burt's Books;
4.4 MongoDB: Next Steps;
Chapter 5: Asynchronous Web Services;
5.1 Asynchronous Web Requests;
5.2 Long Polling with Tornado;
5.3 WebSockets with Tornado;
Chapter 6: Writing Secure Applications;
6.1 Cookie Vulnerabilities;
6.2 Request Vulnerabilities;
6.3 User Authentication;
6.4 Summing up;
Chapter 7: Authenticating with External Services;
7.1 The Tornado auth Module;
7.2 Example: Sign in With Twitter;
7.3 Example: Facebook Authentication and the Graph API;
Chapter 8: Deploying Tornado;
8.1 Reasons for Running Multiple Tornado Instances;
8.2 Using Nginx as a Reverse Proxy;
8.3 Using Supervisor to Manage Tornado Processes;