Skip to main content

Lightweight Python 3 API to access Windows COM Objects

Project description

arwcom

Lightweight Python 3 API to access Windows COM Objects

Developer Configuration

Configure VS Code for Microsoft C++

References

Python Bindings Libraries

  • pywin32

    • Access to many of the Windows APIs from Python
  • win32com

    • Python COM Extensions, example: xl = win32com.client.Dispatch("Excel.Application")
  • comtypes

    • Lightweight Python COM package, based on the ctypes_FFI library, in less than 10000 lines of code (not counting the tests).
  • win32-setctime

    • Pure python package using from ctypes import windll, wintypes, byref, FormatError, WinError
  • SoundCard

    • Patch for combase.dll _ole32 = _ffi.dlopen('ole32') and _combase.CoUninitialize()
  • Python ctypes.OleDLL() Examples

    • General examples of using ctypes.OleDLL
  • NSF2X

    • Example of finding a DLL in C2R version of COM object and get a COM object
  • MSL-LoadLib

    • Supported: LIBTYPES = ['cdll', 'windll', 'oledll', 'net', 'clr', 'java', 'com', 'activex']
  • pywinauto test_backend.py

    • Unit tests for Windows COM threading mode initialization by mocking pythoncom.CoInitializeEx
  • Spark

    • CoInitializeEx = windll.ole32.CoInitializeEx
  • pystrict3

    • Manual pythoncom.CoInitializeEx(pythoncom.COINIT_APARTMENTTHREADED) and pythoncom.CoUninitialize()
  • pywin32-stubs

    • pywin32-stubs is generated from pywin32.chm
  • pymfc

  • r2com

  • ComIDA

    • ea_cocreateinstance = find_import("ole32", "CoCreateInstance") or find_import("api-ms-win-core-com-l1-1-0", "CoCreateInstance")

Other language bindings to COM

C/C++ Examples

  • Fastboi
    • A lightweight and simple C++20 game engine written over SDL2. It implements a basic component model and event system.
  • Win32batch-GokhleSir
    • COM, Class factory, Containment, Aggregation, Automation, etc.
  • CommeCOM
    • Header-only library providing basic means for working with "comme" (like) COM objects - querying interfaces and acccessing functionality from dynamically loaded plug-ins (DLLs or shared objects)
  • EasyOLE: C/C++ OLE Automation Client Library
    • Ease the development of OLE Automation Clients in C/C++ handling the internal not-so-friendly aspects of COM interfaces
  • OLEVIEW Sample: ActiveX Object Viewer
    • Illustrates how to implement ActiveX Object viewers through custom ActiveX interfaces
  • MapWinGis

Writing COM Applications

COM API Reference

Books

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

arwcom-0.1.0.tar.gz (18.0 kB view details)

Uploaded Source

Built Distribution

arwcom-0.1.0-py3-none-any.whl (19.0 kB view details)

Uploaded Python 3

File details

Details for the file arwcom-0.1.0.tar.gz.

File metadata

  • Download URL: arwcom-0.1.0.tar.gz
  • Upload date:
  • Size: 18.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.8.11 Windows/10

File hashes

Hashes for arwcom-0.1.0.tar.gz
Algorithm Hash digest
SHA256 db00aed0a90277904e05ae24a18ae3c6d29679d42d5ab91f4dc5df875f8eacf6
MD5 0d8243a1e8148d9330f0677eca36f624
BLAKE2b-256 3e272fd923ff0a9f0b8c4ffde3d643a6104fcee40c180a78dc1dad97b0e08603

See more details on using hashes here.

File details

Details for the file arwcom-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: arwcom-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 19.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.8.11 Windows/10

File hashes

Hashes for arwcom-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d78d23e046c3588b4f30cf71199bfa0042a5a9c4fdcb80af9801d4c3da972fdd
MD5 0a9e4c29d9d22cd2b42089bbec0d8ab1
BLAKE2b-256 f1ceea6035a1f74628350cf7768d37f445bcc6070ad2331670bd032485d0540a

See more details on using hashes here.

Supported by

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