Skip to content

A limited subset of pywin32 re-implemented using ctypes (or cffi)

License

Notifications You must be signed in to change notification settings

exaile/pywin32-ctypes

 
 

Repository files navigation

https://travis-ci.org/enthought/pywin32-ctypes.png https://ci.appveyor.com/api/projects/status/q3es9rvhgj88r0f1/branch/master?svg=true https://codecov.io/github/enthought/pywin32-ctypes/coverage.svg?branch=master 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.

Usage

Example:

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

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

Note

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

Note

  • While pywin32-ctypes should regularly be tested on windows, you can also develop/test on unix by using wine (see travis-ci configuration to set it up).

About

A limited subset of pywin32 re-implemented using ctypes (or cffi)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 91.7%
  • Shell 7.7%
  • Batchfile 0.6%