comtypes
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.
comtypes==1.1.7is the last version supporting Windows CE.
Available on Python 3.7-3.12.
comtypes==1.2.1is the last version supportingPython2.7 and 3.3-3.6.- In
Python3.7.6 and 3.8.1,comtypeswould not work as reported in GH-202.
This bug has been fixed inPython>= 3.7.7 and >= 3.8.2. - In
Python3.8 and 3.9, some ofcomtypesfunctionalities may not work correctly as reported in GH-212.
This bug has been fixed inPython>= 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'sndarray - type hints be interpreted by
mypyor 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.
Documentation:
The documentation is currently hosted on pythonhosted at: https://pythonhosted.org/comtypes
Metadata
Release files for comtypes 1.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| comtypes-1.4.0.zip | 218.4 kB | Without provenance | Details for comtypes-1.4.0.zip |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| comtypes-1.4.0-py3-none-any.whl | Python 3 | none | any | Details for comtypes-1.4.0-py3-none-any.whl |
Total release size: 416.1 kB
Release files / comtypes-1.4.0.zip
| Download URL | comtypes-1.4.0.zip |
|---|---|
| Size | 218.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
091a1b5b4cd64de5ee9755bf812f7491ebee194508f626936252a89a4cb9b672
|
|
BLAKE2b-256 checksum How to use checksums |
fcff480b8ef3e7aaebe1e76de80424a21ae8b4c613feba98587e170ac0b92990
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.2
|
Release files / comtypes-1.4.0-py3-none-any.whl
| Download URL | comtypes-1.4.0-py3-none-any.whl |
|---|---|
| Size | 197.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a52566b18bb77a002c68ceabd0479f21af01545fa94f6a779d712b8c489f71c9
|
|
BLAKE2b-256 checksum How to use checksums |
c329011526bf23a3a0df767565e312adfdf008626132d014579c5d8e1f4162e3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.2
|
Security for comtypes 1.4.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.