Python Programming On Win32: Help for Windows Programmers

Front Cover
"O'Reilly Media, Inc.", 2000 - Computers - 652 pages

Python is growing in popularity; based on download statistics, there are now over 450,000 people using Python, and more than 150,000 people using Python on Windows. Use of the language has been growing at about 40% per year since 1995, and there is every reason to believe that growth will continue.

Despite Python's increasing popularity on Windows, Python Programming on Win32 is the first book to demonstrate how to use it as a serious Windows development and administration tool. Unlike scripting on Unix, Windows scripting involves integrating a number of components, such as COM or the various mail and database APIs, with the Win32 programming interface. While experienced Windows C++ programmers can find their way through the various objects, most people need some guidance, and this book is it. It addresses all the basic technologies for common integration tasks on Windows, explaining both the Windows issues and the Python code you need to glue things together.

Topics include:

  • The Python language and the PythonWin extensions
  • Building a GUI with COM
  • Adding a Macro language
  • Distributing the application
  • Client-side COM for output and data access
  • Integration with mail and other internet protocols
  • Managing users and drives

This is a vital and unique book. Python Programming on Win32 is an excellent presentation of Windows application development and a solid illustration of how to use Python in the Windows environment.

 

Contents

What Is Python?
3
Python Language Review
17
Python on Windows
25
Integrated Development Environments for Python
46
Introduction to COM
65
II
73
A Financial Modeling Toolkit in Python
75
Building a GUI with COM
100
Working with Email
272
Using the Basic Internet Protocols
282
Windows NT Administration
290
Processes and Files
308
Windows NT Services
333
Communications
371
GUI Development
388
Active Scripting
435

Adding a Macro Language
121
Integration with Excel
142
Printed Output
156
Distributing Our Application
188
III
191
Advanced Python and COM
193
Databases
235
Extending and Embedding with Visual C++ and Delphi
451
IV
475
Key Python Modules and Functions
477
Win32 Extensions Reference
529
The Python Database API Version 20
604
Threads
616
Index
631

Other editions - View all

Common terms and phrases

About the author (2000)

Mark Hammond is an independent Microsoft Windows consultant working out of Melbourne, Australia. He studied computer science at the South Australian Institute of Technology (now the University of South Australia), and then worked with several large financial institutions in Australia. He started his consulting operation in 1995. Mark has produced many of the Windows extensions for Python, including PythonWin, Active Scripting, and Active Debugging support, and coauthored the COM framework and extensions. He is also a leading authority on Active Scripting and related technologies and has spoken on this subject at Microsofts three most recent Professional Developers conferences. Apart from being a father to his teenage daughter, having an interest in live music, and providing way-too-many free Python extensions, Mark has no life! Andy Robinson is a London-based consultant specializing in business analysis, object-oriented design, and Windows development. He studied physics and philosophy, then Japanese studies at Oxford. He spent a year in advertising in Tokyo, two more in investment banking, and a long spell as the finance director of a startup in the sports industry. Observing that in all these positions he always ended up having to rewrite software, he moved to full-time computer consulting four years ago. He is currently helping one of the world's largest fund managers to internationalize their systems to handle Asian languages, developing Python systems for financial analysis, and reporting. Back when Andy had spare time, his passions were track and field, and rock climbing. Right now his two sons, Tim and Harry, are taking up all of his time.