| |
| |
Preface | |
| |
| |
| |
Introduction to Python | |
| |
| |
| |
What Is Python? | |
| |
| |
Language Features | |
| |
| |
Python as an Integration Tool | |
| |
| |
Case Studies of Python Deployment | |
| |
| |
The Python Community | |
| |
| |
Installation and Setup | |
| |
| |
Conclusion | |
| |
| |
| |
Python Language Review | |
| |
| |
A Crash Course | |
| |
| |
Conclusion | |
| |
| |
References | |
| |
| |
| |
Python on Windows | |
| |
| |
The Python Core on Windows | |
| |
| |
The Python for Windows Extensions | |
| |
| |
The Python Imaging Library (PIL) | |
| |
| |
PyOpenGL | |
| |
| |
Web Publishing Tools | |
| |
| |
The mx Extensions | |
| |
| |
Scientific Tools | |
| |
| |
XML | |
| |
| |
Conclusion | |
| |
| |
| |
Integrated Development Environments for Python | |
| |
| |
The PythonWin IDE | |
| |
| |
IDLE | |
| |
| |
Conclusion | |
| |
| |
| |
Introduction to COM | |
| |
| |
What It Is | |
| |
| |
Using COM Objects from Python | |
| |
| |
Implementing COM Objects with Python | |
| |
| |
Globally Unique Identifiers | |
| |
| |
Conclusion | |
| |
| |
| |
Building an Advanced Python Application | |
| |
| |
| |
A Financial Modeling Toolkit in Python | |
| |
| |
Doubletalk | |
| |
| |
A Crash Course in Accounting | |
| |
| |
The Doubletalk Toolkit at Work | |
| |
| |
Conclusion | |
| |
| |
| |
Building a GUI with COM | |
| |
| |
Designing COM Servers | |
| |
| |
A VB Client | |
| |
| |
Writing a Delphi User Interface | |
| |
| |
Conclusion | |
| |
| |
| |
Adding a Macro Language | |
| |
| |
Dynamic Code Evaluation | |
| |
| |
Making an Application Extensible | |
| |
| |
Conclusion | |
| |
| |
| |
Integration with Excel | |
| |
| |
Client-Side COM and the Excel Object Model | |
| |
| |
Excel Concluded | |
| |
| |
Putting It All Together: Importing Financial Data | |
| |
| |
Server-Side COM Again: Excel as a GUI | |
| |
| |
Conclusion | |
| |
| |
References | |
| |
| |
| |
Printed Output | |
| |
| |
Business Requirements | |
| |
| |
Automating Word | |
| |
| |
Direct Output to the Printer with Windows | |
| |
| |
PIDDLE: A Python Graphics API | |
| |
| |
PostScript | |
| |
| |
Portable Document Format | |
| |
| |
Putting It Together: A High-Volume Invoicing System | |
| |
| |
Conclusion | |
| |
| |
References | |
| |
| |
| |
Distributing Our Application | |
| |
| |
DCOM | |
| |
| |
Conclusion | |
| |
| |
| |
Python on Windows Cookbook | |
| |
| |
| |
Advanced Python and COM | |
| |
| |
Advanced COM | |
| |
| |
Python and COM | |
| |
| |
Using Automation Objects from Python | |
| |
| |
Using Other COM Interfaces | |
| |
| |
Error Handling | |
| |
| |
Implementing COM Objects in Python | |
| |
| |
Python and DCOM | |
| |
| |
Conclusion | |
| |
| |
| |
Databases | |
| |
| |
DAO, ADO, ODBC, OLEDB, and Other GBFLAs | |
| |
| |
Python's Database API | |
| |
| |
Getting at Your Data | |
| |
| |
A Note on Speed | |
| |
| |
Gadfly, the Pure Python Relational Database | |
| |
| |
Data Laundering with Python | |
| |
| |
A Three-Tier Architecture with Business Objects | |
| |
| |
Conclusion | |
| |
| |
References | |
| |
| |
| |
Working with Email | |
| |
| |
SMTP and POP3 | |
| |
| |
Microsoft Exchange/Outlook | |
| |
| |
Conclusion | |
| |
| |
| |
Using the Basic Internet Protocols | |
| |
| |
HTTP and HTML | |
| |
| |
FTP | |
| |
| |
NNTP | |
| |
| |
Conclusion | |
| |
| |
| |
Windows NT Administration | |
| |
| |
Working with Users and Groups | |
| |
| |
Server and Share Information | |
| |
| |
Rebooting a Machine | |
| |
| |
Conclusion | |
| |
| |
References | |
| |
| |
| |
Processes and Files | |
| |
| |
Portable File Manipulation | |
| |
| |
Native File Manipulation: The win32file Module | |
| |
| |
Pipes | |
| |
| |
Processes | |
| |
| |
Conclusion | |
| |
| |
| |
Windows NT Services | |
| |
| |
Services in Brief | |
| |
| |
Controlling Services with Python | |
| |
| |
Reading the Event Log | |
| |
| |
Windows NT Performance Monitor Data | |
| |
| |
Writing Services in Python | |
| |
| |
Sample Service Written in Python | |
| |
| |
Writing to the Event Log | |
| |
| |
Providing Performance Monitor Information | |
| |
| |
A Final Service | |
| |
| |
Conclusion | |
| |
| |
| |
Communications | |
| |
| |
Serial Communications | |
| |
| |
Remote Access Services | |
| |
| |
Sockets | |
| |
| |
Other Communications Tools | |
| |
| |
Conclusion | |
| |
| |
References | |
| |
| |
| |
GUI Development | |
| |
| |
Tkinter | |
| |
| |
PythonWin | |
| |
| |
wxPython | |
| |
| |
| |
Active Scripting | |
| |
| |
Registering the Python Active Script Support | |
| |
| |
Python and Popular Microsoft Applications | |
| |
| |
Active Debugging | |
| |
| |
How Active Scripting Works | |
| |
| |
Active Script Hosting in Python | |
| |
| |
Conclusion | |
| |
| |
| |
Extending and Embedding with Visual C++ and Delphi | |
| |
| |
Python and Visual C++ | |
| |
| |
Simplified Wrapper and Interface Generator | |
| |
| |
Python and Delphi | |
| |
| |
Dynamic DLL Access | |
| |
| |
References | |
| |
| |
Conclusion | |
| |
| |
| |
Appendixes | |
| |
| |
| |
Key Python Modules and Functions | |
| |
| |
| |
Win32 Extensions Reference | |
| |
| |
| |
The Python Database API Version 2.0 | |
| |
| |
| |
Threads | |
| |
| |
Index | |