Goodreads helps you keep track of books you want to read. Want to Read saving…. Want to Read Currently Reading Read. Other editions.
|Published (Last):||6 June 2018|
|PDF File Size:||18.36 Mb|
|ePub File Size:||7.66 Mb|
|Price:||Free* [*Free Regsitration Required]|
Originally published on my blog, 10 May From previous work I have done with TurboGears, I knew that CherryPy was a contender, so I was definitely interested to see what version 3 had to offer. CherryPy Essentials is a fairly short book pages , especially given the breadth of topics it covers. It could easily have been times as long, if the author was wordy or repetitive, but the concise writing style means that there is a lot of good information packed into this short volume.
The real substance of the book begins with chapter 3, which gives an overview of CherryPy. It includes a moderately sized introductory application which lets different authors post notes on a page.
The sample code includes embedded comments and is used as a basis for a brief description of how CherryPy decides what to do when an HTTP request is received. CherryPy comes with a host of modules to make building your application easier. The author clearly states that his intent is not to create a reference guide, but I would have liked to see this section pulled out into its own chapter and expanded, possibly combined with the Tools list in chapter 4.
The same chapter also includes a description and concise example of how to use each Tool provided in the CherryPy core distribution, following a format not unlike the one I use for my Python Module of the Week series.
Chapters discuss the design and development of a photo blog application, which is small enough for the reader to follow but large enough to delve into the details of how to build a real application with CherryPy.
The presentation begins with the data model, then covers web services and user interface topics. Some of chapter 5, which discusses working with databases, is unfocused and includes sections on topics such as backgrounds on database types and object-relational mapping libraries not actually used in the example applications.
This material could have been eliminated without serious loss. It is interesting, but it detracts a bit from the overall coherence of this book. Once he selects the Dejavu ORM, the discussion refocuses and covers the mechanics of using that library to store and retrieve data. These were perhaps the most interesting sections in the book. The author clearly has a great deal of experience to share on these topics. I hope there is another book coming soon with a greater examination of these topics.
Then the Kid templating language is introduced thankfully without a comprehensive survey of all available Python templating languages The UI for the example application is fairly simple, so only basic Kid features are really covered, but that is enough. The last 2 chapters of the book cover topics too frequently left out of other books: Testing and Deployment. The chapter on testing presents several tools which integrate well with CherryPy for automated testing of different aspects of your application, including webtest for unit testing, FunkLoad for load testing, and Selenium for UI testing.
The final chapter covers deployment options for moving a CherryPy app into production. I suppose the final choice should be made on more variables than could really be covered, but I would have liked to see clear guidelines for making a decision about which configuration to use in different situations.
Any good, modern, open source project does not stand alone, and CherryPy is no exception. Tools covered include:. CherryPy Essentials packs a surprising amount of information into a small space. The coverage is not exceptionally deep in any one area, but is fairly complete. The sample code is consistent and easy to read.
The book is full of useful and interesting information and, while it occasionally suffers from disjoint flow, I can definitely recommend it to any Python programmer interested in the future of CherryPy development, and web technologies in general.
Review CherryPy Essentials is a fairly short book pages , especially given the breadth of topics it covers. The outline is fairly typical for tech books: What is this thing and why do I care? Third-party Tools Any good, modern, open source project does not stand alone, and CherryPy is no exception. Conclusion CherryPy Essentials packs a surprising amount of information into a small space.
Special thanks to Ms. PyMOTW for proof reading this post for me. Previous Post Previous unfluence. Next Post Next blogs and preservation.
Explore a preview version of CherryPy Essentials right now. 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. The library aims at being simple to learn for a beginner while offering the most advanced features to fluent Python developers.
Cherrypy Essentials: Rapid Python Web Application Development
CherryPy Essentials by Sylvain Hellegouarch
CherryPy Essentials: Rapid Python Web Application Development