CherryPy Essentials: Rapid Python Web Application Development

Design, develop, test, and deploy your Python web applications easily

CherryPy Essentials: Rapid Python Web Application Development

Starting
Sylvain Hellegouarch

Design, develop, test, and deploy your Python web applications easily
$10.00
$39.99
RRP $23.99
RRP $39.99
eBook
Print + eBook
$29.99 p/month

Find out more

Get Unlimited Access to every Packt eBook and Video course

Enjoy full and instant access to over 3500+ books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

+ Collection
Free Sample

Book Details

ISBN 139781904811848
Paperback272 pages

Book Description

CherryPy is a Python library for web development that allows developers to build web applications in the same way as any other object-oriented Python program. Enriched by several years of active development, it has become one of the most established toolkits for building solid and high-performance web applications in Python. CherryPy abstracts the complex low-level HTTP protocol into an easy-to-use interface that respects Python idioms. The library aims at being simple to learn for a beginner while offering the most advanced features to fluent Python developers. For these reasons CherryPy was chosen to be at the heart of the popular and feature-rich TurboGears web framework. CherryPy-powered web applications are stand-alone Python applications with their own embedded multi-threaded web server, but can also run behind Apache or IIS for scalability.

Table of Contents

Chapter 1: Introduction to CherryPy
Overview
History of CherryPy
The Community
CherryPy Project Strengths
Beyond CherryPy
Through the Book
Summary
Chapter 2: Download and Install CherryPy
Requirements
Overview
Installation from a Tarball
Installation through Easy Install
Installation from Subversion
Testing your Installation
Keeping CherryPy Up to Date
Summary
Chapter 3: Overview of CherryPy
Vocabulary
Basic Example
Built-In HTTP Server
Internal Engine
Configuration
Object Publisher Engine
Library
Tools
Error and Exception Handling
Summary
Chapter 4: CherryPy in Depth
HTTP Compliance
Multiple HTTP Servers
Multi-Threaded Application Server
URI Dispatching
Hook into CherryPy's Core Engine
CherryPy Toolbox
Static Resource Serving
WSGI Support
Summary
Chapter 5: A Photoblog Application
A Photoblog Application
Photoblog Entities
Vocabulary
DBMSes Overview
Object-Relational Mapping
Photoblog Application Entity Modeling
Querying Units
Extending the Data Access Layer
Summary
Chapter 6: Web Services
Traditional Web Development
REST
Uniform Resource Identifier
HTTP Methods
Putting it Together
REST Interface through CherryPy
Atom Publishing Protocol
Atom XML-Document Format
APP Implementation
Summary
Chapter 7: The Presentation Layer
HTML
XML
XHTML
CSS
DHTML
Templating
Kid—The Templating Engine
Photoblog Design Preparation
Photoblog Design in Detail
Mochikit
Developing the Photoblog Design
Summary
Chapter 8: Ajax
Rise of the Rich-Client Applications
Ajax
JSON
Applying Ajax to our Application
Summary
Chapter 9: Testing
Why Testing
Planning a Test
Common Testing Approach
Unit Testing
Unit Testing Web Applications
Performance and Load Testing
Functional Testing
Summary
Chapter 10: Deployment
Configuration
Deployment
SSL
Summary

What You Will Learn

  • The book will be about CherryPy 3
  • CherryPy installation using the tarball, egg, and subversion
  • The CherryPy library in depth: its design and how to use it
  • Using CherryPy with common Python and non-Python products
  • Object Relational Mapping with SQLObject, SQLAlchemy, and Dejavu
  • Web Services via REST and the Atom Publishing Protocol
  • AJAX and client-side scripting via MochiKit
  • Unit, functional, and load testing
  • CherryPy, Apache, and lighttpd deployment solutions

Authors

Table of Contents

Chapter 1: Introduction to CherryPy
Overview
History of CherryPy
The Community
CherryPy Project Strengths
Beyond CherryPy
Through the Book
Summary
Chapter 2: Download and Install CherryPy
Requirements
Overview
Installation from a Tarball
Installation through Easy Install
Installation from Subversion
Testing your Installation
Keeping CherryPy Up to Date
Summary
Chapter 3: Overview of CherryPy
Vocabulary
Basic Example
Built-In HTTP Server
Internal Engine
Configuration
Object Publisher Engine
Library
Tools
Error and Exception Handling
Summary
Chapter 4: CherryPy in Depth
HTTP Compliance
Multiple HTTP Servers
Multi-Threaded Application Server
URI Dispatching
Hook into CherryPy's Core Engine
CherryPy Toolbox
Static Resource Serving
WSGI Support
Summary
Chapter 5: A Photoblog Application
A Photoblog Application
Photoblog Entities
Vocabulary
DBMSes Overview
Object-Relational Mapping
Photoblog Application Entity Modeling
Querying Units
Extending the Data Access Layer
Summary
Chapter 6: Web Services
Traditional Web Development
REST
Uniform Resource Identifier
HTTP Methods
Putting it Together
REST Interface through CherryPy
Atom Publishing Protocol
Atom XML-Document Format
APP Implementation
Summary
Chapter 7: The Presentation Layer
HTML
XML
XHTML
CSS
DHTML
Templating
Kid—The Templating Engine
Photoblog Design Preparation
Photoblog Design in Detail
Mochikit
Developing the Photoblog Design
Summary
Chapter 8: Ajax
Rise of the Rich-Client Applications
Ajax
JSON
Applying Ajax to our Application
Summary
Chapter 9: Testing
Why Testing
Planning a Test
Common Testing Approach
Unit Testing
Unit Testing Web Applications
Performance and Load Testing
Functional Testing
Summary
Chapter 10: Deployment
Configuration
Deployment
SSL
Summary

Book Details

ISBN 139781904811848
Paperback272 pages
Read More

Read More Reviews