Book description
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
Publisher resources
Table of contents
- A Note Regarding Supplemental Files
- Copyright
- Preface
-
1. Introduction to Python
- 1. What Is Python?
- 2. Python Language Review
-
3. Python on Windows
- 3.1. The Python Core on Windows
- 3.2. The Python for Windows Extensions
- 3.3. The Python Imaging Library (PIL)
- 3.4. PyOpenGL
- 3.5. Web Publishing Tools
- 3.6. The mx Extensions
- 3.7. Scientific Tools
- 3.8. XML
- 3.9. Conclusion
- 4. Integrated Development Environments for Python
- 5. Introduction to COM
-
2. Building an Advanced Python Application
- 6. A Financial Modeling Toolkit in Python
- 7. Building a GUI with COM
-
8. Adding a Macro Language
- 8.1. Dynamic Code Evaluation
-
8.2. Making an Application Extensible
- 8.2.1. Changing the Delegate Class
- 8.2.2. A Delegation Framework for Responding to Events
- 8.2.3. Views and Validators
- 8.2.4. A User-Defined View: The Backend
- 8.2.5. A User-Defined View: The Front End
- 8.2.6. User-Defined Validations
- 8.2.7. More Ways to Extend the Application
- 8.2.8. A Note on Performance
- 8.3. Conclusion
- 9. Integration with Excel
- 10. Printed Output
- 11. Distributing Our Application
-
3. Python on Windows Cookbook
- 12. Advanced Python and COM
-
13. Databases
- 13.1. DAO, ADO, ODBC, OLEDB, and Other GBFLAs
- 13.2. Python’s Database API
- 13.3. Getting at Your Data
- 13.4. A Note on Speed
- 13.5. Gadfly, the Pure Python Relational Database
- 13.6. Data Laundering with Python
- 13.7. A Three-Tier Architecture with Business Objects
- 13.8. Conclusion
- 13.9. References
- 14. Working with Email
- 15. Using the Basic Internet Protocols
- 16. Windows NT Administration
-
17. Processes and Files
- 17.1. Portable File Manipulation
- 17.2. Native File Manipulation: The win32file Module
- 17.3. Pipes
- 17.4. Processes
- 17.5. Conclusion
-
18. Windows NT Services
- 18.1. Services in Brief
- 18.2. Controlling Services with Python
- 18.3. Reading the Event Log
- 18.4. Windows NT Performance Monitor Data
- 18.5. Writing Services in Python
- 18.6. Sample Service Written in Python
- 18.7. Writing to the Event Log
- 18.8. Providing Performance Monitor Information
- 18.9. A Final Service
- 18.10. Conclusion
- 19. Communications
-
20. GUI Development
- 20.1. Tkinter
-
20.2. PythonWin
- 20.2.1. Introduction to MFC
- 20.2.2. The PythonWin Object Model
- 20.2.3. Developing a PythonWin Sample Application
- 20.2.4. Defining a Simple Framework
- 20.2.5. Enhancing the DocumentTemplate
- 20.2.6. Enhancing the Document
- 20.2.7. Defining the View
- 20.2.8. Creating the Application Object
- 20.2.9. PythonWin and Resources
- 20.2.10. PythonWin Conclusion
- 20.3. wxPython
- 21. Active Scripting
-
22. Extending and Embedding with Visual C++ and Delphi
- 22.1. Python and Visual C++
- 22.2. Simplified Wrapper and Interface Generator
- 22.3. Python and Delphi
- 22.4. Dynamic DLL Access
- 22.5. References
- 22.6. Conclusion
-
4. Appendixes
-
A. Key Python Modules and Functions
- A.1. Built-in Types
- A.2. Built-in Exceptions
- A.3. Built-in Functions
- A.4. module sys: System-Specific Parameters and Functions
- A.5. module string: Common String Operations
- A.6. module os: Miscellaneous OS Interfaces
-
B. Win32 Extensions Reference
- B.1. Common Win32 Python Objects
- B.2. pythoncom Module
- B.3. win32api Module
- B.4. win32event Module
- B.5. win32evtlog Module
- B.6. win32file Module
- B.7. win32pipe Module
- B.8. win32process Module
- B.9. Service-Related Modules
- B.10. win32net Module
- B.11. USER_INFO Structures
- B.12. SERVER_INFO Structures
- B.13. GROUP_INFO Structures
- B.14. GROUP_USERS_INFO Structures
- B.15. LOCALGROUP_USERS_INFO Structures
- B.16. LOCALGROUP_INFO Structures
- B.17. LOCALGROUP_MEMBERS_INFO Structures
- C. The Python Database API Version 2.0
- D. Threads
-
A. Key Python Modules and Functions
- About the Authors
- Colophon
- Copyright
Product information
- Title: Python Programming On Win32
- Author(s):
- Release date: January 2000
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781565926219
You might also like
book
Advanced Python Programming - Second Edition
Write fast, robust, and highly reusable applications using Python's internal optimization, state-of-the-art performance-benchmarking tools, and cutting-edge …
book
Python GUI Programming with Tkinter - Second Edition
Transform your evolving user requirements into feature-rich Tkinter applications Key Features Extensively revised with new content …
book
Python in a Nutshell, 3rd Edition
Useful in many roles, from design and prototyping to testing, deployment, and maintenance, Python is consistently …
video
Python Programming Language
6+ Hours of Video Instruction Python Programming Language LiveLessons provides developers with a guided tour of …