Skip to content
A limited subset of pywin32 re-implemented using ctypes (or cffi)
Branch: master
Clone or download
Latest commit b112ca8 May 22, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs fix anonymous link Sep 1, 2017
win32ctypes Do not skip if we cannot find the pywin32 version Aug 14, 2018
.coveragerc update coveragerc Apr 11, 2015
.gitignore Update appveyor builds (#71) Sep 4, 2017
CHANGELOG.txt Update changelog Aug 17, 2018
LICENSE.txt MAINT: add 3-clause BSD license. Feb 14, 2014 add docs folder to sdist May 26, 2017
README.rst remove references to not used travis-ci build setup Feb 5, 2018
VERSION bump version Aug 17, 2018
appveyor.yml Fix python prefix path May 18, 2019
codecov.yml rename `.codecov.yml` to `codecov.yml Sep 1, 2017
cp33-tox-requirements.txt Python 3.3 will need pycparcer < 2.15 May 18, 2019
doc-requirements.txt change documentation theme to alabaster May 25, 2017 Add python 3.7 to the supported versions Aug 17, 2018
test-requirements.txt Rework test requirements Aug 10, 2018
tox-requirements.txt Add missing requirements file May 18, 2019
tox.ini Fix cp33 test build May 18, 2019

README.rst Documentation Status

A reimplementation of pywin32 that is pure python. The default behaviour will try to use cffi (>= 1.3.0), if available, and fall back to using ctypes. Please note that there is no need to have a compiler available on installation or at runtime.



# Equivalent to 'import win32api' from pywin32.
from win32ctypes.pywin32 import win32api

win32api.LoadLibraryEx(sys.executable, 0, win32api.LOAD_LIBRARY_AS_DATAFILE)


Currently pywin32ctypes implements only a very small subset of pywin32, for internal needs at Enthought. We do welcome additional features and PRs, though.

Development setup

The following should be good enough:

pip install -r dev_requirements.txt
python install -e


  • While pywin32-ctypes should regularly be tested on windows, you can also develop/test on unix by using wine
You can’t perform that action at this time.