Skip to main content

Access selected win32 APIs through ctypes

Project description

logo ctwin32

winonly PyPI - Version PyPI - Python Version License - MIT PyPI - Stats


ctwin32 is a pure Python module, that wraps some Windows APIs (win32) by using ctypes. Since it is my personal playground, the selection of supported APIs and the way those are wrapped are solely dictated by my needs and preferences.

ctwin32 is definitely not a replacement for pywin32, although it serves that purpose for me (in conjunction with comtypes). Compared with pywin32 the coverage of ctwin32 is downright tiny.

While there is already another Python module that does something very similar to ctwin32 (pywin32-ctypes), it has a different purpose (namely to serve the internal needs of its creator).

See the samples directory for several instances of how ctwin32 can be used.


Note: Even though ctwin32 is a pure Python module, it can of course only be used on Windows. Therefore, the wheel packages provided are intentionally tagged with the x86, x64 and and arm64 Windows platform tags (in terms of content, those are the same). This is just to keep pip from installing them on a non-Windows OS.

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

ctwin32-2.7.0.tar.gz (189.2 kB view details)

Uploaded Source

Built Distributions

ctwin32-2.7.0-py3-none-win_arm64.whl (162.2 kB view details)

Uploaded Python 3 Windows ARM64

ctwin32-2.7.0-py3-none-win_amd64.whl (162.2 kB view details)

Uploaded Python 3 Windows x86-64

ctwin32-2.7.0-py3-none-win32.whl (162.2 kB view details)

Uploaded Python 3 Windows x86

File details

Details for the file ctwin32-2.7.0.tar.gz.

File metadata

  • Download URL: ctwin32-2.7.0.tar.gz
  • Upload date:
  • Size: 189.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.4

File hashes

Hashes for ctwin32-2.7.0.tar.gz
Algorithm Hash digest
SHA256 548e6ed83398fc87dfd1c738074b5df80312c07fd91fdaa9ec804e191b82e6a8
MD5 d59c074cf030b8e2b9edfa203dfd3479
BLAKE2b-256 bd2d34d344441c9e5f7a0d2fa6027d21cdad87beca5c5daac54a233cb3d59fbd

See more details on using hashes here.

File details

Details for the file ctwin32-2.7.0-py3-none-win_arm64.whl.

File metadata

  • Download URL: ctwin32-2.7.0-py3-none-win_arm64.whl
  • Upload date:
  • Size: 162.2 kB
  • Tags: Python 3, Windows ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.4

File hashes

Hashes for ctwin32-2.7.0-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 3dd2d545ffe7a258df33c2b567aa1d1ff47a3947e89ce2c5b79c78d407e718a0
MD5 3ff909806cf1d0b5945c7a5c1dab7558
BLAKE2b-256 855ba219f93c1dd2886a55ff9ddf0c9a1a406399945be8922f0b9df841f9b5f9

See more details on using hashes here.

File details

Details for the file ctwin32-2.7.0-py3-none-win_amd64.whl.

File metadata

  • Download URL: ctwin32-2.7.0-py3-none-win_amd64.whl
  • Upload date:
  • Size: 162.2 kB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.4

File hashes

Hashes for ctwin32-2.7.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 47ac6a4b5f17c36ba0aa02b0f0e8e13aa71b373170fc7d94be33aa83336b569f
MD5 96454204aac8051005eb6c3067028413
BLAKE2b-256 476ad5784984a46e6affc2e66073907223741cec406878b675d2250577499d6d

See more details on using hashes here.

File details

Details for the file ctwin32-2.7.0-py3-none-win32.whl.

File metadata

  • Download URL: ctwin32-2.7.0-py3-none-win32.whl
  • Upload date:
  • Size: 162.2 kB
  • Tags: Python 3, Windows x86
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.4

File hashes

Hashes for ctwin32-2.7.0-py3-none-win32.whl
Algorithm Hash digest
SHA256 489851cb9114a2af64e6dab4655673d49cc5c2b34b6b1f6f066ecd6c80db8ec0
MD5 c4c9ae12617938bde7639e702cf6d388
BLAKE2b-256 3b8a3dfd8709610fc6080dbc9fb7877d1cc3ea2c0762d88b8caba76a6ec43863

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