Skip to main content

Pure Python COM package

Project description

comtypes

Works on Windows only
PyPI version PyPI - Python Version PyPI - License PyPI - Downloads
GitHub Repo stars GitHub forks
Tidelift Subscription

About

comtypes is a lightweight Python COM package, based on the ctypes FFI library.

comtypes allows to define, call, and implement custom and dispatch-based COM interfaces in pure Python.

This package works on Windows only.

Available on Python 3.7-3.12.

  • comtypes==1.2.1 is the last version supporting Python 2.7 and 3.3-3.6.
  • In Python 3.7.6 and 3.8.1, comtypes would not work as reported in GH-202.
    This bug has been fixed in Python >= 3.7.7 and >= 3.8.2.
  • In Python 3.8 and 3.9, some of comtypes functionalities may not work correctly as reported in GH-212.
    This bug has been fixed in Python >= 3.10.10 and >= 3.11.2.

Where to get it

The source code is currently hosted on GitHub at: https://github.com/enthought/comtypes

An installer for the latest released version is available at the Python Package Index (PyPI).

# PyPI
pip install comtypes

Dependencies

comtypes requires no third-party packages to run - this is truly pure Python package.

Optional features include the follows...

  • to process arrays as numpy's ndarray
  • type hints be interpreted by mypy or several static type checkers

But these third-parties are not required as a prerequisite for runtime.

Community of the developers

Tracking issues, reporting bugs and contributing to the codebase and documentation are on GitHub at: https://github.com/enthought/comtypes

For Enterprise

Available as part of the Tidelift Subscription.

This project and the maintainers of thousands of other packages are working with Tidelift to deliver one enterprise subscription that covers all of the open source you use.

Learn more.

Documentation:

The documentation is currently hosted on pythonhosted at: https://pythonhosted.org/comtypes

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

comtypes-1.4.1.zip (218.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

comtypes-1.4.1-py3-none-any.whl (197.9 kB view details)

Uploaded Python 3

File details

Details for the file comtypes-1.4.1.zip.

File metadata

  • Download URL: comtypes-1.4.1.zip
  • Upload date:
  • Size: 218.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for comtypes-1.4.1.zip
Algorithm Hash digest
SHA256 4379443876465c6015fe801d6665b7c75d9ed5b169deee0161a00637f4ebbd2e
MD5 80d7e4abdac134636e8813dcedca6f87
BLAKE2b-256 01a21be5c25a761e0571194c5533ce357c5b1bb3fa2a6de972032df19a64914f

See more details on using hashes here.

File details

Details for the file comtypes-1.4.1-py3-none-any.whl.

File metadata

  • Download URL: comtypes-1.4.1-py3-none-any.whl
  • Upload date:
  • Size: 197.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for comtypes-1.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a208a0e3ca1c0a5362735da0ff661822801dce87312b894d7d752add010a21b0
MD5 a7b34de5cdbca0177472ff96c2cf3b6f
BLAKE2b-256 508f518a37381e55a8857a638afa86143efa5508434613541402d20611a1b322

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page