Home > Store > Open Source > Python

larger cover

Add To My Wish List

Python Web Programming

  • By Steve Holden
  • Published Jan 8, 2002 by Sams. Part of the Landmark series.
    • Copyright 2002
    • Dimensions: Special (all other)
    • Pages: 720
    • Edition: 1st
    • Book
    • ISBN-10: 0-7357-1090-2
    • ISBN-13: 978-0-7357-1090-0

Register your product to gain access to bonus material or receive a coupon.

  • Description
  • Downloads
  • Extras
  • Reviews
  • Sample Content

Product Author Bios

Steve Holden is a consultant, advising on system and network architectures and the design and implementation of programmed web systems for commercial clients. His client base includes GlobalPhone, an international telecommunications company, and the Prometric division of Thomson Learning. He was the technical lead on the major redesign of the National Science Foundation's web site in 1997.

Steve also teaches classes on TCP/IP, UNIX security, web security, intranet technologies, and database topics for Learning Tree International. Steve has spent time on both sides of the "academic divide" and was an early researcher into the integration of text, graphics, and databases while teaching commercial computing topics at Manchester University. This research led Steve to form Desktop Connection Limited, the first UK reseller of Frame Technology's (now Adobe's) FrameMaker software. His customers included British Telecom, British Aerospace, British Gas, and Sun Microsystems.

Steve was born and raised in the UK, and has traveled throughout Europe and the USA on teaching assignments. He now lives with his wife, Dorothy, in Fairfax, Virginia, where when not consulting, teaching, or writing, he enjoys looking for worthwhile American beers, entertaining friends and family, and reading science fiction.

Python Web Programming is a practical introduction to building networked systems in the object-oriented framework of the Python language. It shows how to leverage the powerful Python libraries to build systems with less programming effort and easier maintenance. It leaves involved discussion of the Python language by itself to other books and dives right into using Python within web enables applications.

This book is intended for programmers who have experience with other programming languages (such a C or C++) and has some experience with building web-based systems. It is for the serious programmer who does not want a basic introductory to the language.

All code developed in the book will be available on the newriders.com website. This is an incredible asset because the Python language allows for modular programming between systems, thus readers in their projects can use code created in the book.

Downloads

Click below for Downloads related to this title:
pythoncode.zip (80k)

Customer Reviews

29 of 32 people found the following review helpful
5.0 out of 5 stars Excellent example snippets; Clear explanations, February 24, 2002
This review is from: Python Web Programming (Paperback)
If you are going to be using Internet protocols, doing network programming, or web programming with Python, and these are new topics for you, I would highly recommend this book.

The book starts with a brief overview of the Python language. The author's intention is that someone with a fairly extensive programming background in other languages would be able to pick up enough Python from this overview to be able to do the rest of the programming in the book. Perhaps so. I already know Python, but did find the summary in the front informative.

I really like the fact that nearly every page has a code snippet on it. Examples are brief and to the point. The author explains each line of code and has a very direct and clear way of explaining things. I found the explanations easy to read and understand.

After the brief Python Language overview, comes an overview of sockets and socket programming. I've been trying to learn a bit about the whole topic of sockets by searching the web and... Read more

Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


22 of 24 people found the following review helpful
3.0 out of 5 stars Good introductory work curiously lacking in some areas, February 4, 2002
This review is from: Python Web Programming (Paperback)
Though the title makes it appear more limited, this volume "is intended to be a suitable introductory Python book", an all-in-one reference to not only web applications, but also general client-server networking, relational databases, XML, and Internet protocols like POP and NNTP. Though not the best introduction to Python (I would instead recommend O'Reilly's Learning Python) it does a good job of gathering together disparate information and presenting the topics clearly and with well thought-out code.

However, this is not a good book on CGI, HTML form handling, templating, and other common web application tasks. Holden chooses as his major example to extend an asynchronous web server into a web application framework. Thus he does not deal with Apache (or any other pre-existing server) and Python integration issues.

The coverage of Internet protocols given here is only slightly extended from the standard documentation. IMAP4 gets one paragraph, in which Holden notes its... Read more

Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


15 of 16 people found the following review helpful
5.0 out of 5 stars A Wonderful Book, A Great Resource!, January 27, 2002
By 
Ronald D. Stephens "Book Worm" (Newtown, CT United States) - See all my reviews
(REAL NAME)   
This review is from: Python Web Programming (Paperback)
Python Web Programming by Steve Holden with David Beazley; New Riders, 2002, 691 pages.

Python Web Programming is a great resource for web programmers. I have found not found this much information, on all aspects of web programming with Python, in any other book. It is extremely well
written and a joy to read.

The book first gives an overview of the Python language. This overview is well worth reading, even if you are already a Python expert. Steve Holden has a unique and interesting perspective on the matters at hand, and he gives very detailed expositions on the whys and wherefores behind various Pythonic idioms. I found that this section gave me a different point of view and a deeper understanding of several aspects of Python's design and structure than I had previously realized.

Next, in a very rich and informative section, over 100 pages are devoted to Network Programming in Python. After giving a very clear and detailed overview of basic network programming basics,... Read more

Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


Share your thoughts with other customers:
 See all 17 customer reviews...

Online Sample Chapter

Python Web Programming: Web Application Frameworks

Table of Contents

I. WHY PYTHON, AND HOW?

1. The Python Language.

Where Python Came From. Where Python Is Going. What Use Is Python.

2. An Introduction to Python.

Using the Interpreter. Python Syntax. Python Statements. Defining Functions. Major Built-in Functions and Methods. Modules in Python. Exception Handling.

3. Object-Orientation.

Data in Python. Data Structures in Python. Defining Classes. The class Statement. Jython: A Unique Blend of Two Languages.

II. NETWORK PROGRAMMING IN PYTHON.

4. Client/Server Concepts.

Functions of the Four Internet Protocol Layers. Connectionless Versus Connection- Oriented Networking. The Concept of a Network Socket. Network Programming Concepts. The socket Library. Connectionless Client Structures. Connection-Oriented Client Structures.

5. Available Client Libraries.

File Transfer. Dealing with Mail. nntplib: Receiving Network News. httplib: Writing Web Clients.

6. A Server Framework Library.

Server Structures. SocketServer Libraries. Writing Servers with the SocketServer Module. HTTP Server Modules.

7. Asynchronous Services.

Synchronous Limitations. The asyncore Module. asynchat: Handling Structured Conversations.

III. DATABASE PROGRAMMING IN PYTHON.

8. Relational Database Principles.

What Is a Database? Data Modeling and Database Design. Semantic Integrity: Applying Business Rules. Physical Design Considerations.

9. Client/Server Database Architectures.

The Client/Server Nature of Modern Relational Databases. Stored Procedures. Triggers.

10. The Python Database Interface.

Database Interfaces. The Underlying Interface Model. Some Database Modules. A Simple Database-Driven Web. SQL/Python Communication.

11. Adapting the Python Interface to Database Products.

What Help Are Standards? Available Database Modules. SQL Adaptation Layer Tasks. Adapting Specific DB Modules and Engines. Web Server Interaction with Database Programs. Maintaining Data in Python CGI Scripts. Generalizing Data Maintenance.

IV. XML AND PYTHON.

12. A Bird's-Eye View of XML.

Background. Shortcomings of HTML. XML. DTDs. Physical Structure and Entities. XML Namespaces. Validating Versus Nonvalidating XML Parsing. Summary.

13. XML Processing.

Installing the Software. Creating XML Documents. Validating XML Documents. XML Parsing with Regular Expressions. An Introduction to XML Parsing with expat. XML Processing with SAX and DOM. Other Python XML Packages.

14. SAX: The Simple API for XML.

Introduction to SAX. SAX Utilities.

V. INTEGRATED WEB APPLICATIONS IN PYTHON.

15. Building Small, Efficient Python Web Systems.

Why Build It Yourself? Critical Self-Assessment. The Significance of Style and Simplicity. A Note on Complexity. Planning Interactive Web Systems. Summary.

16. Web Application Frameworks.

Information Sources. Web Server Architectures. HTML (and XML) Generation. Component Interaction: Choose Your Model.

17. AWeFUL: An Object-Oriented Web Site Framework.

Why Another Framework? Framework Requirements. The AWeFUL Framework Structure. The Framework Code. Summary.

18. A Web Application- PythonTeach.com.

The Company Mission. Structure of the Application. Request Handling Logic. Content Generation Logic. The Site Structure.

VI. APPENDIXES.

Appendix A. Changes Since Python 2.0.

Introduction to Changes in Python 2.1. Introduction to Changes in Python 2.2.

Appendix B. Glossary.

Index.

Downloadable Sample Chapter

Click below for Sample Chapter related to this title:
0735710902.pdf

 
Buy

Book  $49.99  $39.99

Usually ships in 24 hours.

This book includes free shipping!

Purchase Reward: One Month Free Subscription
By completing any purchase on InformIT, you become eligible for an unlimited access one-month subscription to Safari Books Online.

Get access to thousands of books and training videos about technology, professional development and digital media from more than 40 leading publishers, including Addison-Wesley, Prentice Hall, Cisco Press, IBM Press, O'Reilly Media, Wrox, Apress, and many more. If you continue your subscription after your 30-day trial, you can receive 30% off a monthly subscription to the Safari Library for up to 12 months. That's a total savings of $199.