CherryPy Essentials: Rapid Python Web Application Development

Design, develop, test, and deploy your Python web applications easily
Preview in Mapt

CherryPy Essentials: Rapid Python Web Application Development

Sylvain Hellegouarch

Design, develop, test, and deploy your Python web applications easily
Mapt Subscription
FREE
$29.99/m after trial
eBook
$16.80
RRP $23.99
Save 29%
Print + eBook
$39.99
RRP $39.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$16.80
$39.99
$29.99 p/m after trial
RRP $23.99
RRP $39.99
Subscription
eBook
Print + eBook
Start 14 Day Trial

Frequently bought together


CherryPy Essentials: Rapid Python Web Application Development Book Cover
CherryPy Essentials: Rapid Python Web Application Development
$ 23.99
$ 16.80
cPanel User Guide and Tutorial Book Cover
cPanel User Guide and Tutorial
$ 17.99
$ 12.60
Buy 2 for $29.40
Save $12.58
Add to Cart

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

Recommended for You

cPanel User Guide and Tutorial Book Cover
cPanel User Guide and Tutorial
$ 17.99
$ 12.60
JasperReports for Java Developers Book Cover
JasperReports for Java Developers
$ 26.99
$ 18.90
Python 3 Web Development Beginner's Guide Book Cover
Python 3 Web Development Beginner's Guide
$ 26.99
$ 5.40
Expert Python Programming Book Cover
Expert Python Programming
$ 26.99
$ 5.40
Zen Cart: E-commerce Application Development Book Cover
Zen Cart: E-commerce Application Development
$ 29.99
$ 21.00
Building Machine Learning Systems with Python Book Cover
Building Machine Learning Systems with Python
$ 29.99
$ 6.00