Flylib.com
Python Phrasebook
Python Phrasebook
ISBN: 0672329107
EAN: 2147483647
Year: N/A
Pages: 138
Authors:
Brad Dayley
BUY ON AMAZON
Python Phrasebook: Essential Code and Commands
Table of Contents
Copyright
About the Author
Acknowledgments
Introduction
Chapter 1. Understanding Python
Why Use Python?
Invoking the Interpreter
Built-In Types
Understanding Python Syntax
Python Objects, Modules, Classes, and Functions
Error Handling
Using System Tools
Chapter 2. Manipulating Strings
Comparing Strings
Joining Strings
Splitting Strings
Searching Strings for Substrings
Search and Replace in Strings
Searching Strings for Specific EndingsBeginnings
Trimming Strings
AligningFormatting Strings
Executing Code Inside Strings
Interpolating Variables Inside Strings
Converting Unicode to Local Strings
Chapter 3. Managing Data Types
Defining a List
Accessing a List
Slicing a List
Adding and Removing Items in a List
Sorting a List
Using Tuples
Constructing a Dictionary
Adding a Value to a Dictionary
Retrieving a Value from a Dictionary
Slicing a Dictionary
Swapping Keys for Values in a Dictionary
Chapter 4. Managing Files
Opening and Closing Files
Reading an Entire File
Reading a Single Line from a File
Accessing Each Word in a File
Writing a File
Determining the Number of Lines in a File
Walking the Directory Tree
Renaming Files
Recursively Deleting Files and Subdirectories
Searching for Files Based on Extension
Creating a TAR File
Extracting a File from a TAR File
Adding Files to a ZIP File
Retrieving Files from a ZIP File
Chapter 5. Managing Threads
Starting a New Thread
Creating and Exiting Threads
Synchronizing Threads
Implementing a Multithreaded Priority Queue
Initiating a Timer-Interrupted Thread
Chapter 6. Managing Databases
Adding Entries to a DBM File
Retrieving Entries from a DBM File
Updating Entries in a DBM File
Pickling Objects to a File
Unpickling Objects from a File
Storing Objects in a Shelve File
Retrieving Objects from a Shelve File
Changing Objects in a Shelve File
Connecting to a MySQL Database Server
Creating a MySQL Database
Adding Entries to a MySQL Database
Retrieving Entries from a MySQL Database
Chapter 7. Implementing Internet Communication
Opening a Server-Side Socket for Receiving Data
Opening a Client-Side Socket for Sending Data
Receiving Streaming Data Using the ServerSocket Module
Sending Streaming Data
Sending Email Using SMTP
Retrieving Email from a POP3 Server
Using Python to Fetch Files from an FTP Server
Chapter 8. Processing HTML
Parsing URLs
Opening HTML Documents
Retrieving Links from HTML Documents
Retrieving Images from HTML Documents
Retrieving Text from HTML Documents
Retrieving Cookies in HTML Documents
Adding Quotes to Attribute Values in HTML Documents
Chapter 9. Processing XML
Loading an XML Document
Checking for Well-Formed XML Documents
Accessing Child Nodes
Accessing Element Attributes
Adding a Node to a DOM Tree
Removing a Node from a DOM Tree
Searching XML Documents
Extracting Text from XML Documents
Parsing XML Tags
Chapter 10. Programming Web Services
Adding HTML to Web Pages Using CGI Scripts
Processing Parameters Passed to CGI Scripts
Creating Self-Posting CGI Scripts
Allowing Users to Upload Files via CGI Scripts
Creating an HTTP Server to Handle GET Requests
Creating an HTTP Server to Handle POST Requests
Creating an HTTP Server to Process CGI Scripts
Sending an HTTP GET Request from a Python Script
Sending an HTTP POST Request from a Python Script
Creating an XML-RPC Server
Creating an XML-RPC Client
Using SOAPpy to Access SOAP Web Services Through a WSDL File
Index
SYMBOL
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Python Phrasebook
ISBN: 0672329107
EAN: 2147483647
Year: N/A
Pages: 138
Authors:
Brad Dayley
BUY ON AMAZON
Beginners Guide to DarkBASIC Game Programming (Premier Press Game Development)
Welcome to DarkBASIC
Introduction to Computer Programming
Making Programs Think Branching Statements and Subroutines
Programming the Keyboard, Mouse, and Joystick
Multiplayer Programming The Crazy Carnage Game
Identifying and Managing Project Risk: Essential Tools for Failure-Proofing Your Project
Identifying Project Resource Risk
Managing Project Constraints and Documenting Risks
Managing Activity Risks
Managing Project Risk
Closing Projects
Adobe After Effects 7.0 Studio Techniques
Optimizing Your Projects
Optimizing Plate Levels
Morphing
Battle of the Color Spaces
Fire
The New Solution Selling: The Revolutionary Sales Process That Is Changing the Way People Sell [NEW SOLUTION SELLING 2/E]
Chapter One Solutions
Chapter Two Principles
Chapter Five Stimulating Interest
Chapter Seven Diagnose Before You Prescribe
Chapter Fourteen Getting Started with the Process
Web Systems Design and Online Consumer Behavior
Chapter III Two Models of Online Patronage: Why Do Consumers Shop on the Internet?
Chapter X Converting Browsers to Buyers: Key Considerations in Designing Business-to-Consumer Web Sites
Chapter XIII Shopping Agent Web Sites: A Comparative Shopping Environment
Chapter XVI Turning Web Surfers into Loyal Customers: Cognitive Lock-In Through Interface Design and Web Site Usability
Chapter XVIII Web Systems Design, Litigation, and Online Consumer Behavior
HTI+ Home Technology Integrator & CEDIA Installer I All-In-One Exam Guide
Wiring Installation Practices
Rough-In Installation
Troubleshooting Audio Systems
Designing a Home Security System
Installing a Home Security System
flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net
Privacy policy
This website uses cookies. Click
here
to find out more.
Accept cookies