
Introduction to Tornado
Description
Alles über E-Books | Antworten auf Fragen rund um E-Books, Kopierschutz und Dateiformate finden Sie in unserem Info- & Hilfebereich.
More details
Other editions
Additional editions

Content
- Cover
- Copyright
- Table of Contents
- Preface
- Conventions Used in This Book
- Using Code Examples
- Safari® Books Online
- How to Contact Us
- Acknowledgements
- Chapter 1. Introduction
- What Is Tornado?
- Getting Started with Tornado
- Community and Support
- Simple Web Services
- Hello Tornado
- String Service
- More About RequestHandlers
- Next Steps
- Chapter 2. Forms and Templates
- Simple Example: Poem Maker Pro
- Rendering Templates
- Interpolation
- Template Syntax
- Interpolating Expressions
- Control Flow Statements
- Using Functions Inside Templates
- Complete Example: The Alpha Munger
- How It Works
- Serving Static Files
- Next Steps with Templates
- Chapter 3. Extending Templates
- Blocks and Substitutions
- Basics of Blocks
- Templates in Practice: Burt's Books
- Autoescaping
- UI Modules
- Basic Module Usage
- Modules in Depth
- Embedding JavaScript and CSS
- Summing Up
- Chapter 4. Databases
- Basic MongoDB Operations with PyMongo
- Establishing a Connection
- Dealing with Documents
- MongoDB Documents and JSON
- A Simple Persistent Web Service
- A Read-Only Dictionary
- Writing the Dictionary
- Burt's Books
- Reading Books (From the Database)
- Editing and Adding Books
- MongoDB: Next Steps
- Chapter 5. Asynchronous Web Services
- Asynchronous Web Requests
- Starting Synchronous
- The Trouble with Blocking
- Basic Asynchronous Calls
- The asynchronous Decorator and the finish Method
- Asynchronous Generators
- Summary of Asynchronous Operations
- Long Polling with Tornado
- The Benefits of Long Polling
- Example: Live Inventory Reporting
- The Downsides of Long Polling
- WebSockets with Tornado
- Tornado's WebSocket Module
- Example: Live Inventory with WebSockets
- The Future of WebSockets
- Chapter 6. Writing Secure Applications
- Cookie Vulnerabilities
- Cookie Forgery
- Secure Cookies
- Request Vulnerabilities
- Anatomy of a Cross-Site Request Forgery
- Defending Against Request Forgeries
- Using Tornado's XSRF protection
- User Authentication
- Example: Welcome Back
- The authenticated Decorator
- Summing Up
- Chapter 7. Authenticating with External Services
- The Tornado auth Module
- The Authorization Workflow
- Asynchronous Requests
- Example: Sign in With Twitter
- Example: Facebook Authentication and the Graph API
- Chapter 8. Deploying Tornado
- Reasons for Running Multiple Tornado Instances
- Using Nginx as a Reverse Proxy
- Basic Nginx Configuration
- SSL Decryption with Nginx
- Using Supervisor to Manage Tornado Processes
- About the Authors
System requirements
File format: PDF
Copy-Protection: Adobe-DRM (Digital Rights Management)
System requirements:
- Computer (Windows; MacOS X; Linux): Install the free reader Adobe Digital Editions prior to download (see eBook Help).
- Tablet/smartphone (Android; iOS): Install the free app Adobe Digital Editions or the app PocketBook before downloading (see eBook Help).
- E-reader: Bookeen, Kobo, Pocketbook, Sony, Tolino and many more (only limited: Kindle).
The file format PDF always displays a book page identically on any hardware. This makes PDF suitable for complex layouts such as those used in textbooks and reference books (images, tables, columns, footnotes). Unfortunately, on the small screens of e-readers or smartphones, PDFs are rather annoying, requiring too much scrolling.
This eBook uses Adobe-DRM, a „hard” copy protection. If the necessary requirements are not met, unfortunately you will not be able to open the eBook. You will therefore need to prepare your reading hardware before downloading.
Please note: We strongly recommend that you authorise using your personal Adobe ID after installation of any reading software.
For more information, see our eBook Help page.