Close
Enter your search into one or more of the boxes below:
You can refine your search by selecting from any of the options below:
Search
Python: Create, Modify, Reuse
Python: Create, Modify, Reuse (Paperback)
Order Options List Price Online Price Save Availability
Delivery:

To home, business or free to our stores. Click for more info.

     

Available through New & Used Online only

 
Click & Collect:

Order now to collect from 4pm today. In stock items only. Click for more info.

     

Stores - out of stock

 
New & Used:

Our marketplace sellers will deliver to your chosen address. Click for more info.

From £8.49  

In stock at one or more sellers.

Buy - Select Seller

Product Synopsis

Python: Create-Modify-Reuse is designed for all levels of Python developers interested in a practical, hands-on way of learning Python development. This book is designed to show you how to use Python (in combination with the raw processing power of your computer) to accomplish real-world tasks in a more efficient way. Don't look for an exhaustive description of the Python language--you won't find it. The book's main purpose is not to thoroughly cover the Python language, but rather to show how you can use Python to create robust, real-world applications. In this respect, the goal is similar to foreign-language books that identify themselves as "conversational," focusing on the vocabulary and concepts that people will need the most. Likewise, I focus specifically on the Python knowledge needed to accomplish practical, specific tasks. Along the way, you will learn to create useful, efficient scripts that are easy to maintain and enhance. This book is for developers with some experience with Python who want to explore how to develop full-blown applications. It is also for developers with experience in other languages who want to learn Python by building robust applications.

It is well-suited for developers who like to "learn by doing," rather than exploring a language feature by feature. To get the most out of the book, you should understand basic programming principles. Because this book is project-based, you can approach it in numerous ways. You can, of course, read it from cover to cover. Chapters 2 through 8 each cover a different project, so the chapters are independent of each other. However, because each chapter project is covered individually, there may be some overlap of information. I also sometimes refer to explanations of particular topics covered in previous chapters. This will help to reinforce important concepts. The end of the book contains two appendixes. The first one is a listing of Python resources you can check out for more information. The second one will help you with installing additional components used in some of the examples. This book starts with a basic overview of the Python language, designed for those familiar with other languages but new to Python. It is followed by several chapters, each of which describes a complete project that can be used as-is or modified and extended to suit your particular purposes.

You'll find applications that access databases, take advantage of web technologies, and facilitate network communications, to name a few. In addition, and more important than the technologies you will be introduced to, you will learn how to use Python to solve real challenges. Following these chapters are two chapters that cover accessing operating system resources and debugging and testing, respectively. Each project chapter contains complete instructions describing how to install and use the application, so you can actually see the program run as you learn how to construct and use it, including how the project was designed and prototyped. This book is intended to be both a reference guide and a learning aid, teaching you how to build solutions with Python and providing reference information on a wide variety of Python programming concepts. It is hoped that this book will help you have fun with Python and build useful applications, and-unlike my experience with building a deck-without sore thumbs. This book is framed around the code itself.

This is because developers are typically looking for how to do something; and, as with many activities, you learn how to do something by watching how others do and trying it yourself. If you want to know how a for loop works, you'll find for loops in my code, but that's not the thrust of the book. Instead, this book shows you how to do things: how to build a content management system, how to build a test management system, how to set up a system for tracking customer follow-up, and so on. Along the way, you'll learn how to communicate with a SQL database, how to act as a web server or communicate with one, how to access operating system services, and more. There are three basic components to the book: Chapter 1 is a brief overview of the Python language. Chapters 2-8 cover seven different programming projects, which illustrate various technologies and techniques available to Python developers. Chapters 9-10 cover additional, advanced topics, which will help you as you build Python projects. The project chapters have a consistent structure: Overview: What does the application do?

Using the program Design How it all fits together Modules involved Code and code explanation Module/class 1 explanation Module/class 2 explanation Minor code file explanation Testing, including suggested tests Modifying the project, including some suggested adaptations Summary Each project is designed with classes that can be reused and accessed for multiple purposes. This is one of the main benefits of object-oriented programming, so designing for reusability is a main focus of the book. The book contains the following chapters: 1. Python Basics This chapter is a basic primer on the Python language, and it functions as either a quick tutorial for experienced programmers new to Python or a refresher for programmers with Python experience. Part I: The Projects 2. Directory/File Snapshot Program This project demonstrates how to interact with files, create and manipulate data structures, and provide user output. It also touches on code design issues to improve code maintainability.

Often when installing or uninstalling software, or verifying changes to a file system, it can be valuable to take a "snapshot" of the files and directories, along with their size and last-modified time. The script introduced in this chapter does just that. This chapter also explores how to capture a directory listing into a Python list, and explains how to query this list for particular values. 3. DVD Inventory System This project takes advantage of Python's capability to access and manipulate data in a SQL database. The application enables multiple users to log in to a website that provides access to a DVD inventory database. Permissions are set such that some users can add, modify, or delete entries, whereas other users have read-only access to the data. 4. Web Performance Tester This project shows how to communicate with a Python web server and retrieve information regarding how long it takes to receive requested items from the web server. Although writing Python programs to work on a single computer can be useful, the real power of Python can be seen when it is used to script communication between computers on a network. Most networks contain several web servers.

A nice feature of Python is that it can act as a lightweight server for various Internet protocols, such as HTTP (web) and ftp. This application enables you to monitor performance of HTTP traffic on your network. 5. Customer Follow-Up System This project shows how to present a web form to the user and retrieve data from it, how to automatically format and send e-mail through an SMTP server, and how to generate an HTML-formatted report. The task for the second example is to automatically generate a customer comments e-mail message based on information the customer enters in a form. It uses the mod-python Apache module to take the information entered in the HTTP form and then utilizes a Python script on the web server to send that information to an SMTP server for mail delivery. 6. Test Management/Reporting System This project makes use of the unittest module to run tests against an existing application, and creates a framework for reporting test results. Testing is a vital process for developing software.

This application enables users to run tests for a given piece of software, to list the previous test runs by date, to show test run results for any previously run tests, and to output the results of any test run as HTML for viewing in a web browser. 7. Version Management System This project connects to a list of servers via telnet, checks the application version of a pre-set application list, and displays its results both as output and to a log file. Often, a system administrator needs to patch systems or ensure that systems have the latest application versions installed. This script is an easy way to accomplish that task. It makes use of Python's capability to emulate a telnet client and log in to remote systems and perform functions on that remote system. 8. Content Management System This project explores Plone, a popular content management system based on Python and Zope (a Python-based application server). Because Python is a very mature language, numerous applications have been built on top of it. A great thing about working with Python-based applications is that you get the benefit of a full-blown application but you can still use Python to configure and customize it.

Part II: Advanced Topics 9. Interacting with the Operating System When writing scripts "in the real world," often it is critical to be able to access services available through (and particular to) the operating system you happen to be on. For example, suppose you wanted to read or modify the Window Registry? Or you wanted to get the Linux process ID of a particular process that is running? Is such a thing even possible? Definitely-and this chapter shows you how. 10. Debugging and Testing Because I am a software tester myself, testing is a subject that is certainly close to my heart. In this chapter, I discuss why testing is important, how to put the right amount of testing into your code, and how writing automated tests can help you to actually write code more quickly. You'll look at PyUnit, the automated testing framework for Python, and learn how to use it to test the riskiest parts of a script. You'll also explore the Python debugger and some of the nifty features it offers.

Appendix A Where to Go from Here: Resources That Can Help This appendix provides an annotated list of books, websites, and blogs that can provide useful information, insight, and inspiration for the budding Python script developer. Appendix B Installing Supplemental Programs This appendix provides detailed information on how to set up MySQL (used in the project in Chapter 3) and PyWin32 (used in Chapter 10 and various other projects in the book).

Computing & IT >> Computer programming / software development >> Programming & scripting languages: generalComputing & IT >> Computer programming / software development >> Software Engineering >> UML Unified Modeling LanguageComputing & IT >> Computer programming / software development >> Web programming Publisher: John Wiley and Sons Ltd Publication Date: 01/07/2008 ISBN-13: 9780470259320  Details: Type: Paperback Format: Books
Availability: Available through New & Used Online only  

More books by James O. Knowlton

Leave Review

Delivery

Please note for the New & Used Marketplace different terms and conditions apply.

Delivery Options

All delivery times quoted are the average, and cannot be guaranteed. These should be added to the availability message time, to determine when the goods will arrive. During checkout we will give you a cumulative estimated date for delivery.

Location1st BookEach additional bookAverage Delivery Time
UK Second ClassAvailable free for orders over £10* or £2.50Available free for orders over £10* or £1.003-7 Days
UK First Class£4.50£1.001-2 Days
UK Courier£7.00£1.001-2 Days
Western Europe** Courier£17.00£3.002-3 Days
Western Europe** Airmail£5.00£1.504-14 Days
USA / Canada Courier£20.00£3.002-4 Days
USA / Canada Airmail£7.00£3.004-14 Days
Rest of World Courier£22.50£3.003-6 Days
Rest of World Airmail£8.00£3.007-21 Days

* Available free for orders over £10 = When offered a delivery preference choose 'For Cheapest Postage' for our freepost in the UK offer. This is not available on the 'For Faster Delivery' option.

** Includes Austria, Belgium, Denmark, France, Germany, Greece, Iceland, Irish Republic, Italy, Luxembourg, Netherlands, Portugal, Spain, Sweden and Switzerland.

Delivery Help & FAQs

Returns Information

If you are not completely satisfied with your purchase*, you may return it to us in its original condition with in 30 days of receiving your delivery or collection notification email for a refund. Except for damaged items or delivery issues the cost of return postage is borne by the buyer. Your statutory rights are not affected.

* For Exclusions and terms on damaged or delivery issues see Returns Help & FAQs

Foyles Marketplace

Special Terms on Marketplace orders

Please note special terms and condition apply and customers placing orders are accepting these terms. See our Full Terms, Delivery Rates and Times. Specifically we are unable to accept cancellation or amendment to Marketplace orders once placed.

All sellers despatch within 48 hours, but postage times and costs vary depending on your location and that of the seller. As such the UK delivery price is displayed as a guide only.

Condition Seller Postage Price

Good

Sellers Comments:

None

  •  
  •  
  •  
  •  
  •  

Re-Read Ltd

Available Qty: 1

United Kingdom

From United Kingdom

£2.95 3-10 business days

£8.49

Earns 33 Foyalty points

Price including delivery to the UK = £11.44

Add to Basket

New

Sellers Comments:

Tracking provided on most orders.

  •  
  •  
  •  
  •  

Blue Turtle Books

Available Qty: 1

United States

From United States

£8.15 21-28 business days

£9.03

Earns 36 Foyalty points

Price including delivery to the UK = £17.18

Add to Basket

Good

Sellers Comments:

Connecting readers with great books since 1972. Used books may not include companion materials, some shelf wear, may contain highlighting/notes, may not include cdrom or access codes. Customer service is our top priority!

  •  
  •  
  •  
  •  

HPB-Sir-Barton

Available Qty: 1

United States

From United States

£8.15 21-28 business days

£9.29

Earns 37 Foyalty points

Price including delivery to the UK = £17.44

Add to Basket

New

Sellers Comments:

None

  •  
  •  
  •  
  •  
  •  

Zeebooks

Available Qty: 1

United States

From United States

£8.15 21-28 business days

£10.90

Earns 43 Foyalty points

Price including delivery to the UK = £19.05

Add to Basket

Very Good

Sellers Comments:

None

  •  
  •  
  •  
  •  

Book Closeouts

Available Qty: 24

United States

From United States

£8.15 21-28 business days

£13.47

Earns 53 Foyalty points

Price including delivery to the UK = £21.62

Add to Basket

Good

Sellers Comments:

None

  •  
  •  
  •  
  •  

Big Planet Books

Available Qty: 1

United States

From United States

£8.15 21-28 business days

£20.58

Earns 82 Foyalty points

Price including delivery to the UK = £28.73

Add to Basket

Very Good

Sellers Comments:

Great customer service. You will be happy!

  •  
  •  
  •  
  •  

booklab

Available Qty: 2

United States

From United States

£8.15 21-28 business days

£48.44

Earns 193 Foyalty points

Price including delivery to the UK = £56.59

Add to Basket

Very Good

Sellers Comments:

None

  •  
  •  
  •  
  •  

More Books

Available Qty: 2

United States

From United States

£8.15 21-28 business days

£48.44

Earns 193 Foyalty points

Price including delivery to the UK = £56.59

Add to Basket

New

Sellers Comments:

Great customer service. You will be happy!

  •  
  •  
  •  
  •  

booklab

Available Qty: 2

United States

From United States

£8.15 21-28 business days

£80.98

Earns 323 Foyalty points

Price including delivery to the UK = £89.13

Add to Basket

New

Sellers Comments:

None

  •  
  •  
  •  
  •  

More Books

Available Qty: 2

United States

From United States

£8.15 21-28 business days

£80.98

Earns 323 Foyalty points

Price including delivery to the UK = £89.13

Add to Basket

You might also like

Risk Manaagement Processes for...
Myerson, Marian;
 
£60.00£54.0010%Add to Basket
Software Verification and Validation:...
Rakitin, Steven R.;
 
£64.00£57.6010%Add to Basket
ABC Programmer's Handbook
Geurts, Leo; Meertens, Lambert;...
 
£14.95£12.7115%Add to Basket
Your Shopping Basket
Total number of items: 0
Sub total: £0.00
Edit Basket Go to Checkout
Select Currency: $ £
enCounter Culture
Signed Books and Copies
Animators Survival Kit
Latest Blog
GUEST BLOG: Meetings with remarkable Londoners
28/10/2014

The author of Londonopolis: A Curious History of London picks ten of its most unusual inhabitants, including including the real-life inspiration for a Bond villain, the artist that even Turner felt inferior to and the pattern-cutter who took the fashion world by storm.

Helping kids discover London's wildlife
23/10/2014

Autumn's natural wonders, even in a city like London, can offer all manner of fun and adventure this half-term, suggests Laura from our Royal Festival Hall shop.

GUEST BLOG: Poetry and art - a wartime romance
17/10/2014

Christiana Spens, illustrator and Director of 3:AM Press, looks at the the important relationship between books and the artwork that adorns them.

View all Blog Entries
Twitter
© W&G Foyle Ltd
Version: 1.0.0.18737