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. For the first three years or so, packages were tagged with the
Windows platform tags to prevent
pip from using
them on other operating systems. However, it became futile to try to prevent
this when after only one year the sdist
package was also released. In the
absence of suitable wheel packages for other operating systems, this would mean
that pip install ctwin32
would now use the sdist
package to install
ctwin32
anyway. Therefore, a universal wheel is now distributed and it is
up to the user to be smart enough to use it on Windows only.