talira

Python extensions for calling Windows APIs and COM from Python

open sourcePSF-2.0 AND BSD-3-Clause AND (PSF-2.0 OR BSD-3-Clause) AND Python-2.0.1 AND MIT AND LGPL-2.1-or-laterfree

pywin32, the Python for Windows extensions, gives Python code access to many of the Windows APIs, including COM, and code that uses it can run as a Windows service. It also includes the Pythonwin editor, adodbapi for databases over ADO and isapi for IIS extensions. Install it from PyPI as pywin32; its post-install script is for global installs, not virtual environments.

Problems it solves

  • automate Excel or Outlook from a Python script on Windows
  • call Windows APIs and COM objects from Python
  • run my Python script as a Windows service

Features

  • access to the Win32 APIs from Python
  • COM support
  • running Python code as a Windows service
  • the Pythonwin editor
  • adodbapi, a DB-API module over ADO
  • isapi for IIS extensions

Limitations

  • Windows only1
  • Any version increase may include a breaking interface change, so its makers recommend pinning a specific version1