Python For Web Application

Python For Web Application
by M. Moka / / / PDF


Read Online 19.2 MB Download


What This Book Covers Chapter 1 presents the story behind CherryPy and a high-level overview of the project. Chapter 2 guides you through the installation and deployment of CherryPy via common strategies like using distutils, setuptools, or subversion. Chapter 3 gives an overview of the main and the most common aspects of CherryPy, which will give you an understanding of what the library can do. Chapter 4 goes into an in-depth review of the main aspects of the library such as its support for the HTTP protocol or the WSGI interface. It also extensively discusses the tool feature of the CherryPy API. Chapter 5 introduces the application, which will be the unifying theme for the rest of the book. The chapter reviews the basic entities that the application will manipulate before moving onto explaining how we will map them into a relational database. This will allow us to explain the concept of ORM and perform a quick comparison between SQLAlchemy, SQLObject, and Dejavu. Chapter 6 presents the idea behind web services by reviewing REST and the Atom Publishing Protocol. Chapter 7 describes how to use a templating engine such as Kid to generate web pages dynamically. The chapter also introduces Mochikit a JavaScript toolkit to perform client-side development. Chapter 8 extends chapter 7 by diving into the world of Ajax, which has reminded web developers that they can create extremely powerful applications by simply using the browser capabilities, the JavaScript language, and the HTTP protocol. Chapter 9 makes a strong point that any application should be reasonably well tested and introduces some testing strategies like unit testing, functional testing, and load testing. Chapter 10 ends the book by reviewing some methods to deploy a CherryPy application under a common web-server front end like Apache and lighttpd. The chapter also explains how to enable SSL from your CherryPy application.

views: 553