comtypes 1.1.14__zip → 1.2.1__zip

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (106) hide show
  1. {comtypes-1.1.14 → comtypes-1.2.1}/CHANGES.txt +37 -0
  2. comtypes-1.2.1/PKG-INFO +79 -0
  3. comtypes-1.2.1/README.md +59 -0
  4. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes/__init__.py +302 -555
  5. comtypes-1.2.1/comtypes/_memberspec.py +520 -0
  6. comtypes-1.2.1/comtypes/_npsupport.py +143 -0
  7. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes/automation.py +99 -11
  8. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes/client/__init__.py +80 -26
  9. comtypes-1.2.1/comtypes/client/_generate.py +274 -0
  10. comtypes-1.2.1/comtypes/hints.pyi +26 -0
  11. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes/persist.py +14 -0
  12. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes/safearray.py +22 -21
  13. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes/test/__init__.py +0 -7
  14. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes/test/test_client.py +35 -0
  15. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes/test/test_dict.py +0 -4
  16. comtypes-1.2.1/comtypes/test/test_npsupport.py +343 -0
  17. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes/test/test_safearray.py +2 -235
  18. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes/test/test_variant.py +6 -59
  19. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes/tools/codegenerator.py +454 -337
  20. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes/tools/tlbparser.py +56 -75
  21. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes/tools/typedesc.py +31 -3
  22. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes/tools/typedesc_base.py +28 -1
  23. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes/typeinfo.py +291 -121
  24. comtypes-1.2.1/comtypes.egg-info/PKG-INFO +79 -0
  25. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes.egg-info/SOURCES.txt +4 -1
  26. {comtypes-1.1.14 → comtypes-1.2.1}/setup.cfg +0 -1
  27. {comtypes-1.1.14 → comtypes-1.2.1}/setup.py +15 -8
  28. comtypes-1.1.14/PKG-INFO +0 -50
  29. comtypes-1.1.14/README.md +0 -31
  30. comtypes-1.1.14/comtypes/client/_generate.py +0 -257
  31. comtypes-1.1.14/comtypes/npsupport.py +0 -125
  32. comtypes-1.1.14/comtypes.egg-info/PKG-INFO +0 -50
  33. {comtypes-1.1.14 → comtypes-1.2.1}/LICENSE.txt +0 -0
  34. {comtypes-1.1.14 → comtypes-1.2.1}/MANIFEST.in +0 -0
  35. {comtypes-1.1.14 → comtypes-1.2.1}/clear_comtypes_cache.py +0 -0
  36. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes/GUID.py +0 -0
  37. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes/_comobject.py +0 -0
  38. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes/_meta.py +0 -0
  39. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes/_safearray.py +0 -0
  40. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes/client/_code_cache.py +0 -0
  41. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes/client/_constants.py +0 -0
  42. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes/client/_events.py +0 -0
  43. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes/client/dynamic.py +0 -0
  44. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes/client/lazybind.py +0 -0
  45. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes/connectionpoints.py +0 -0
  46. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes/errorinfo.py +0 -0
  47. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes/git.py +0 -0
  48. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes/hresult.py +0 -0
  49. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes/logutil.py +0 -0
  50. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes/messageloop.py +0 -0
  51. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes/patcher.py +0 -0
  52. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes/server/__init__.py +0 -0
  53. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes/server/automation.py +0 -0
  54. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes/server/connectionpoints.py +0 -0
  55. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes/server/inprocserver.py +0 -0
  56. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes/server/localserver.py +0 -0
  57. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes/server/register.py +0 -0
  58. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes/server/w_getopt.py +0 -0
  59. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes/shelllink.py +0 -0
  60. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes/test/TestComServer.idl +0 -0
  61. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes/test/TestComServer.py +0 -0
  62. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes/test/TestComServer.tlb +0 -0
  63. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes/test/TestDispServer.idl +0 -0
  64. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes/test/TestDispServer.py +0 -0
  65. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes/test/TestDispServer.tlb +0 -0
  66. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes/test/find_memleak.py +0 -0
  67. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes/test/mylib.idl +0 -0
  68. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes/test/mytypelib.idl +0 -0
  69. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes/test/runtests.py +0 -0
  70. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes/test/setup.py +0 -0
  71. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes/test/test_BSTR.py +0 -0
  72. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes/test/test_DISPPARAMS.py +0 -0
  73. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes/test/test_GUID.py +0 -0
  74. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes/test/test_QueryService.py +0 -0
  75. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes/test/test_agilent.py +0 -0
  76. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes/test/test_avmc.py +0 -0
  77. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes/test/test_basic.py +0 -0
  78. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes/test/test_casesensitivity.py +0 -0
  79. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes/test/test_collections.py +0 -0
  80. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes/test/test_comserver.py +0 -0
  81. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes/test/test_createwrappers.py +0 -0
  82. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes/test/test_dispinterface.py +0 -0
  83. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes/test/test_dyndispatch.py +0 -0
  84. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes/test/test_excel.py +0 -0
  85. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes/test/test_findgendir.py +0 -0
  86. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes/test/test_getactiveobj.py +0 -0
  87. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes/test/test_ie.py +0 -0
  88. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes/test/test_jscript.js +0 -0
  89. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes/test/test_msscript.py +0 -0
  90. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes/test/test_outparam.py +0 -0
  91. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes/test/test_propputref.py +0 -0
  92. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes/test/test_pump_events.py +0 -0
  93. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes/test/test_sapi.py +0 -0
  94. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes/test/test_server.py +0 -0
  95. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes/test/test_showevents.py +0 -0
  96. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes/test/test_subinterface.py +0 -0
  97. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes/test/test_typeinfo.py +0 -0
  98. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes/test/test_urlhistory.py +0 -0
  99. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes/test/test_win32com_interop.py +0 -0
  100. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes/test/test_wmi.py +0 -0
  101. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes/test/test_word.py +0 -0
  102. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes/tools/__init__.py +0 -0
  103. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes/util.py +0 -0
  104. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes/viewobject.py +0 -0
  105. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes.egg-info/dependency_links.txt +0 -0
  106. {comtypes-1.1.14 → comtypes-1.2.1}/comtypes.egg-info/top_level.txt +0 -0
@@ -1,6 +1,43 @@
1
1
  Comtypes CHANGELOG
2
2
  ==================
3
3
 
4
+ Release 1.2.1
5
+ --------------
6
+ * Replace ``distutils`` with ``setuptools``. By @junkmd.
7
+ * Add Python 3.12 testing into CI pipeline. By @junkmd.
8
+ * Set long description type to "markdown" to fix PyPI description rendering. By @junkmd.
9
+ * Add ``hints.pyi`` to ``package_data`` in ``setup.py`` which copies ``hints.pyi`` to correct install location. By @junkmd.
10
+ * Remove Python >=3.3, <=3.6 from CI pipeline. By @vasily-v-ryabov.
11
+
12
+ Release 1.2.0
13
+ --------------
14
+ * Remove all automatic imports of ``numpy``, and make ``numpy`` interop opt-in. By @bennyrowland.
15
+ * Move and redefine generating module functions for fixing cross imports. By @junkmd.
16
+ * Refactor creating ``__all__`` part in ``codegenerator.Generator.generate_code``. By @junkmd.
17
+ * Quit calling ``GetModule`` from ``tools.codegenerator``. By @junkmd.
18
+ * Commonize module-creating functions. By @junkmd.
19
+ * Shorten the lifetime of ``io.StringIO`` used for code generation. By @junkmd.
20
+ * Fix import source of ``Array`` from ``_ctypes`` to ``ctypes``. By @junkmd.
21
+ * Add ``for_stub`` mode to ``ImportedNamespaces.getvalue``. By @junkmd.
22
+ * Remove ``monkeypatch_COMError``. By @junkmd.
23
+ * Remove ``CodeGenerator.need_GUID``. By @junkmd.
24
+ * Carve out ``CodeGenerator.type_name`` method to ``TypeNamer`` class. By @junkmd.
25
+ * Add ``__known_symbols__`` attributes. By @junkmd.
26
+ * Remove ``CodeGenerator.type_name`` calls no longer needed and rename to ``_to_type_name``. By @junkmd.
27
+ * Change ``_fix_inout_args`` to module-level top level function. By @junkmd.
28
+ * Fix docstring from ``DispInterfaceHead``. By @junkmd.
29
+ * ``...METHOD`` and ``...PROPERTY`` return ``_MemberSpec``s instead of ``tuple``s. By @junkmd.
30
+ * Make generating ``...property`` DRY. By @junkmd.
31
+ * Refactor ``_MemberSpec`` stuffs and separate modules. By @junkmd.
32
+ * Carve out ``make_...Method`` and ``make_...Property`` of ``codegenerator``. By @junkmd.
33
+ * Removed extra space in ``typeinfo.IRecordInfo._methods_``. By @j0ker70.
34
+ * Add type annotations to many modules. By @junkmd.
35
+ * Fix type annotations in many modules. By @j0ker70, @muddi900, and @junkmd.
36
+ * Delint ``setup.py``. By @jaraco.
37
+ * Add ``CONTRIBUTING.md``. By @junkmd.
38
+ * Modernize ``README.md`` style. By @junkmd.
39
+ * Add announcements of plan for renaming ``master`` branch to ``main`` and dropping Python2 to ``README.md``. By @junkmd.
40
+
4
41
  Release 1.1.14
5
42
  --------------
6
43
  * Fix ``SyntaxError`` in generated docstring. Thanks @junkmd.
@@ -0,0 +1,79 @@
1
+ Metadata-Version: 2.1
2
+ Name: comtypes
3
+ Version: 1.2.1
4
+ Summary: Pure Python COM package
5
+ Home-page: https://github.com/enthought/comtypes
6
+ Author: Thomas Heller
7
+ Author-email: theller@python.net
8
+ License: MIT License
9
+ Download-URL: https://github.com/enthought/comtypes/releases
10
+ Description: # comtypes
11
+
12
+ [![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/)
13
+ [![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)
14
+
15
+ ## About
16
+
17
+ `comtypes` is a lightweight `Python` COM package, based on the [`ctypes`](https://docs.python.org/library/ctypes.html) FFI library.
18
+
19
+ `comtypes` allows to define, call, and implement custom and dispatch-based COM interfaces in pure `Python`.
20
+
21
+ This package works on Windows only.
22
+ - [`comtypes==1.1.7`](https://pypi.org/project/comtypes/1.1.7/) is the last version supporting Windows CE.
23
+
24
+ Available on `Python` 2.7 and 3.3-3.11.
25
+ - [Supporting `Python` 2.7 will be dropped](#ongoing-plans).
26
+
27
+ ## Where to get it
28
+
29
+ The source code is currently hosted on GitHub at:
30
+ https://github.com/enthought/comtypes
31
+
32
+ An installer for the latest released version is available at the [Python Package Index (PyPI)](https://pypi.org/project/comtypes).
33
+
34
+ ```sh
35
+ # PyPI
36
+ pip install comtypes
37
+ ```
38
+
39
+ ## Dependencies
40
+
41
+ `comtypes` requires no third-party packages to run - this is truly **pure** `Python` package.
42
+
43
+ Optional features include the follows...
44
+ - to process arrays as `numpy`'s `ndarray`
45
+ - type hints be interpreted by `mypy` or several static type checkers
46
+
47
+ But these third-parties are not required as a prerequisite for runtime.
48
+
49
+ ## Community of the developers
50
+
51
+ Tracking issues, reporting bugs and contributing to the codebase and documentation are on GitHub at:
52
+ https://github.com/enthought/comtypes
53
+
54
+ <a id="ongoing-plans"></a>
55
+ ### Ongoing plans
56
+ 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.
57
+
58
+ 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.
59
+
60
+ 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`.
61
+ Until then, no changes will be made to the `master` branch except in the case of corresponding to regressions.
62
+
63
+ Please see [the GitHub issue](https://github.com/enthought/comtypes/issues/392) for policy and progress.
64
+
65
+ ## Documentation:
66
+
67
+ The documentation is currently hosted on pythonhosted at:
68
+ https://pythonhosted.org/comtypes
69
+
70
+ Platform: UNKNOWN
71
+ Classifier: Development Status :: 5 - Production/Stable
72
+ Classifier: Intended Audience :: Developers
73
+ Classifier: License :: OSI Approved :: MIT License
74
+ Classifier: Operating System :: Microsoft :: Windows
75
+ Classifier: Programming Language :: Python
76
+ Classifier: Programming Language :: Python :: 2.7
77
+ Classifier: Programming Language :: Python :: 3
78
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
79
+ Description-Content-Type: text/markdown
@@ -0,0 +1,59 @@
1
+ # comtypes
2
+
3
+ [![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/)
4
+ [![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)
5
+
6
+ ## About
7
+
8
+ `comtypes` is a lightweight `Python` COM package, based on the [`ctypes`](https://docs.python.org/library/ctypes.html) FFI library.
9
+
10
+ `comtypes` allows to define, call, and implement custom and dispatch-based COM interfaces in pure `Python`.
11
+
12
+ This package works on Windows only.
13
+ - [`comtypes==1.1.7`](https://pypi.org/project/comtypes/1.1.7/) is the last version supporting Windows CE.
14
+
15
+ Available on `Python` 2.7 and 3.3-3.11.
16
+ - [Supporting `Python` 2.7 will be dropped](#ongoing-plans).
17
+
18
+ ## Where to get it
19
+
20
+ The source code is currently hosted on GitHub at:
21
+ https://github.com/enthought/comtypes
22
+
23
+ An installer for the latest released version is available at the [Python Package Index (PyPI)](https://pypi.org/project/comtypes).
24
+
25
+ ```sh
26
+ # PyPI
27
+ pip install comtypes
28
+ ```
29
+
30
+ ## Dependencies
31
+
32
+ `comtypes` requires no third-party packages to run - this is truly **pure** `Python` package.
33
+
34
+ Optional features include the follows...
35
+ - to process arrays as `numpy`'s `ndarray`
36
+ - type hints be interpreted by `mypy` or several static type checkers
37
+
38
+ But these third-parties are not required as a prerequisite for runtime.
39
+
40
+ ## Community of the developers
41
+
42
+ Tracking issues, reporting bugs and contributing to the codebase and documentation are on GitHub at:
43
+ https://github.com/enthought/comtypes
44
+
45
+ <a id="ongoing-plans"></a>
46
+ ### Ongoing plans
47
+ 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.
48
+
49
+ 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.
50
+
51
+ 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`.
52
+ Until then, no changes will be made to the `master` branch except in the case of corresponding to regressions.
53
+
54
+ Please see [the GitHub issue](https://github.com/enthought/comtypes/issues/392) for policy and progress.
55
+
56
+ ## Documentation:
57
+
58
+ The documentation is currently hosted on pythonhosted at:
59
+ https://pythonhosted.org/comtypes