Skip to main content

# comtypes

[![PyPI version](https://badge.fury.io/py/comtypes.svg)](https://pypi.org/project/comtypes/) [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/comtypes)](https://pypi.org/project/comtypes/) [![PyPI - License](https://img.shields.io/pypi/l/comtypes)](https://pypi.org/project/comtypes/) [![PyPI - Downloads](https://img.shields.io/pypi/dd/comtypes)](https://pypi.org/project/comtypes/) [![GitHub Repo stars](https://img.shields.io/github/stars/enthought/comtypes?style=social)](https://github.com/enthought/comtypes/stargazers) [![GitHub forks](https://img.shields.io/github/forks/enthought/comtypes?style=social)](https://github.com/enthought/comtypes/network/members)

## About

comtypes is a lightweight Python COM package, based on the [ctypes](https://docs.python.org/library/ctypes.html) FFI library.

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

This package works on Windows only. - [comtypes==1.1.7](https://pypi.org/project/comtypes/1.1.7/) is the last version supporting Windows CE.

Available on Python 2.7 and 3.3-3.11. - [Supporting Python 2.7 will be dropped](#ongoing-plans).

## 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)](https://pypi.org/project/comtypes).

`sh # 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

<a id=”ongoing-plans”></a> ### Ongoing plans For the time being, the development target branch of this package will be the [drop_py2 branch](https://github.com/enthought/comtypes/tree/drop_py2) and the [master branch](https://github.com/enthought/comtypes/tree/master) will be in maintenance-only-mode.

As the name suggests, drop_py2 is a mid-term-planning branch to drop supporting Python 2.x from this package, and start supporting Python 3.x only.

The drop_py2 branch will be merged into the master branch in the future, and the master branch will back to the development target branch and be renamed to main. Until then, no changes will be made to the master branch except in the case of corresponding to regressions.

Please see [the GitHub issue](https://github.com/enthought/comtypes/issues/392) for policy and progress.

## Documentation:

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

Metadata

Release files for comtypes 1.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for comtypes 1.2.0
File Size Uploaded Provenance Actions
comtypes-1.2.0.zip 204.1 kB Without provenance Details for comtypes-1.2.0.zip

Built distribution (wheel)

Table of built distributions (wheels) for comtypes 1.2.0
File Interpreter ABI Platform Actions
comtypes-1.2.0-py2.py3-none-any.whl Python 3, Python 2 none any Details for comtypes-1.2.0-py2.py3-none-any.whl

Total release size: 388.4 kB

Release files / comtypes-1.2.0.zip

Download URL comtypes-1.2.0.zip
Size 204.1 kB
Tags Source
SHA-256 checksum
How to use checksums
c8f2f0e995d73baf0bd899a948d62adeb9ab908c8270c66a67ff09dfcf4872b7
BLAKE2b-256 checksum
How to use checksums
2d1ba7f1df8d5e5d5608b3b4a52935118660a18b497c78dab5047010e88a075f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.8.3 requests/2.27.1 setuptools/41.2.0 requests-toolbelt/1.0.0 tqdm/4.64.1 CPython/2.7.18

Release files / comtypes-1.2.0-py2.py3-none-any.whl

Download URL comtypes-1.2.0-py2.py3-none-any.whl
Size 184.3 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
26f261b1eed6972d5cdaa3af1fadb3fa76fc59877d0a1293835327a76573380d
BLAKE2b-256 checksum
How to use checksums
c2a7fe4bd49b5c4afa7a7ed3852abda6909e48c00715e6a134e47055381113aa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.8.3 requests/2.27.1 setuptools/41.2.0 requests-toolbelt/1.0.0 tqdm/4.64.1 CPython/2.7.18

Security for comtypes 1.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.2.0 This release

2 release files No provenance

0.6.2

0.6.1

0.6.0

0.5.3

0.5.2

0.5.1

0.4.2

0.4.1

0.4.0

0.3.3

0.3.2

0.2.1

0.2

0.1

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page