Create bookmark
Programming Python
Powerful Object-Oriented Programming
Notes
Please login to add notes
- Table of Contents
- + Preface
- + Part I. The Beginning
-
+
Part II. System Programming
-
+
Chapter 2. System Tools
-
+
Chapter 3. Script Execution Context
- + Chapter 4. File and Directory Tools
- + Chapter 5. Parallel System Tools
-
+
Chapter 6. Complete System Programs
- “The Greps of Wrath”
- + A Quick Game of “Find the Biggest Python File”
- + Splitting and Joining Files
- + Generating Redirection Web Pages
- + A Regression Test Script
- Copying Directory Trees
- + Comparing Directory Trees
- + Searching Directory Trees
- + Visitor: Walking Directories “++”
- + Playing Media Files
- Automated Program Launchers (External)
-
+
Chapter 2. System Tools
-
+
Part III. GUI Programming
-
+
Chapter 7. Graphical User Interfaces
- + “Here’s Looking at You, Kid”
- Python GUI Development Options
- + tkinter Overview
- + Climbing the GUI Learning Curve
- + tkinter Coding Alternatives
- + Adding Buttons and Callbacks
-
+
Adding User-Defined Callback Handlers
- + Adding Multiple Widgets
- + Customizing Widgets with Classes
- + Reusable GUI Components with Classes
- The End of the Tutorial
- Python/tkinter for Tcl/Tk Converts
- + Chapter 8. A tkinter Tour, Part 1
- + Chapter 9. A tkinter Tour, Part 2
-
+
Chapter 10. GUI Coding Techniques
- “Building a Better Mousetrap”
- + GuiMixin: Common Tool Mixin Classes
- + GuiMaker: Automating Menus and Toolbars
- + ShellGui: GUIs for Command-Line Tools
- + GuiStreams: Redirecting Streams to Widgets
- Reloading Callback Handlers Dynamically
- Wrapping Up Top-Level Window Interfaces
- + GUIs, Threads, and Queues
-
+
More Ways to Add GUIs to Non-GUI Code
- + The PyDemos and PyGadgets Launchers
-
+
Chapter 11. Complete GUI Programs
- + “Python, Open Source, and Camaros”
-
+
PyEdit: A Text Editor Program/Object
- + PyPhoto: An Image Viewer and Resizer
- + PyView: An Image and Notes Slideshow
- + PyDraw: Painting and Moving Graphics
- + PyClock: An Analog/Digital Clock Widget
- + PyToe: A Tic-Tac-Toe Game Widget
- Where to Go from Here
-
+
Chapter 7. Graphical User Interfaces
-
+
Part IV. Internet Programming
-
+
Chapter 12. Network Scripting
- + “Tune In, Log On, and Drop Out”
- Python Internet Development Options
- + Plumbing the Internet
-
+
Socket Programming
-
+
Handling Multiple Clients
- + Making Sockets Look Like Files and Streams
- + A Simple Python File Server
-
+
Chapter 13. Client-Side Scripting
- “Socket to Me!”
- FTP: Transferring Files over the Net
- + Transferring Files with ftplib
- + Transferring Directories with ftplib
- + Transferring Directory Trees with ftplib
- + Processing Internet Email
- + POP: Fetching Email
- + SMTP: Sending Email
-
+
email: Parsing and Composing Mail Content
- Message Objects
- + Basic email Package Interfaces in Action
-
+
Unicode, Internationalization, and the Python 3.1 email Package
- Parser decoding requirement
- Text payload encodings: Handling mixed type results
- Text payload encodings: Using header information to decode
- Message header encodings: email package support
- Message address header encodings and parsing, and header creation
- Workaround: Message text generation for binary attachment payloads is broken
- Workaround: Message composition for non-ASCII text parts is broken
- Summary: Solutions and workarounds
- + A Console-Based Email Client
-
+
The mailtools Utility Package
- NNTP: Accessing Newsgroups
- HTTP: Accessing Websites
- + The urllib Package Revisited
- Other Client-Side Scripting Options
-
+
Chapter 14. The PyMailGUI Client
- + “Use the Source, Luke”
- + Major PyMailGUI Changes
-
+
A PyMailGUI Demo
- Getting Started
- Loading Mail
- + Threading Model
- Load Server Interface
- Offline Processing with Save and Open
- Sending Email and Attachments
- Viewing Email and Attachments
- Email Replies and Forwards and Recipient Options
- Deleting Email
- POP Message Numbers and Synchronization
- Handling HTML Content in Email
- Mail Content Internationalization Support
- Alternative Configurations and Accounts
- Multiple Windows and Status Messages
-
+
PyMailGUI Implementation
- PyMailGUI: The Main Module
- SharedNames: Program-Wide Globals
- ListWindows: Message List Windows
- ViewWindows: Message View Windows
- messagecache: Message Cache Manager
- popuputil: General-Purpose GUI Pop Ups
- wraplines: Line Split Tools
- html2text: Extracting Text from HTML (Prototype, Preview)
- mailconfig: User Configurations
- textConfig: Customizing Pop-Up PyEdit Windows
- PyMailGUIHelp: User Help Text and Display
- altconfigs: Configuring for Multiple Accounts
- Ideas for Improvement
-
+
Chapter 15. Server-Side Scripting
- “Oh, What a Tangled Web We Weave”
- + What’s a Server-Side CGI Script?
- + Running Server-Side Examples
- + Climbing the CGI Learning Curve
-
+
Saving State Information in CGI Scripts
- + The Hello World Selector
- + Refactoring Code for Maintainability
- + More on HTML and URL Escapes
- + Transferring Files to Clients and Servers
-
+
Chapter 16. The PyMailCGI Server
-
+
Chapter 12. Network Scripting
-
+
Part V. Tools and Techniques
- + Chapter 17. Databases and Persistence
- + Chapter 18. Data Structures
- + Chapter 19. Text and Language
-
+
Chapter 20. Python/C Integration
- + “I Am Lost at C”
- Extending Python in C: Overview
- A Simple C Extension Module
- + The SWIG Integration Code Generator
- + Wrapping C Environment Calls
- + Wrapping C++ Classes with SWIG
- Other Extending Tools
- + Embedding Python in C: Overview
- + Basic Embedding Techniques
- + Registering Callback Handler Objects
- Using Python Classes in C
- Other Integration Topics
-
+
Part VI. The End
- Index
If you've mastered Python's fundamentals, you're ready to start using it to get real work done. Programming Python will show you how, with in-depth tutorials on the language's primary application domains: system administration, GUIs, and the Web. You'll also explore how Python is used in databases, networking, front-end scripting layers, text processing, and more. This book focuses on commonly used tools and libraries to give you a comprehensive understanding of Python's many roles in practical, real-world programming.
You'll learn language syntax and programming techniques in a clear and concise manner, with lots of examples that illustrate both correct usage and common idioms. Completely updated for version 3.x, Programming Python also delves into the language as a software development tool, with many code examples scaled specifically for that purpose.
Topics include:
Quick Python tour: Build a simple demo that includes data representation, object-oriented programming, object persistence, GUIs, and website basics
System programming: Explore system interface tools and techniques for command-line scripting, processing files and folders, running programs in parallel, and more
GUI programming: Learn to use Python's tkinter widget library
Internet programming: Access client-side network protocols and email tools, use CGI scripts, and learn website implementation techniques
More ways to apply Python: Implement data structures, parse text-based information, interface with databases, and extend and embed Python
Test the closed alpha on paperc.com
Book Details
Authors
Categories
Computers > Data Modeling & Design
Publishers
Publication year : 2010
License: All rights reserved ©
Times read: 3,008

