https://github.com/enthought/pywin32-ctypes
A (partial) reimplementation of pywin32 in pure python
https://github.com/enthought/pywin32-ctypes
Last synced: about 1 year ago
JSON representation
A (partial) reimplementation of pywin32 in pure python
- Host: GitHub
- URL: https://github.com/enthought/pywin32-ctypes
- Owner: enthought
- License: other
- Created: 2014-02-11T17:30:57.000Z (over 12 years ago)
- Default Branch: main
- Last Pushed: 2024-09-14T11:43:17.000Z (almost 2 years ago)
- Last Synced: 2025-03-31T16:21:28.731Z (about 1 year ago)
- Language: Python
- Homepage:
- Size: 354 KB
- Stars: 19
- Watchers: 22
- Forks: 9
- Open Issues: 14
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGELOG.txt
- License: LICENSE.txt
Awesome Lists containing this project
README
.. image:: https://readthedocs.org/projects/pywin32-ctypes/badge/?version=master
:target: http://pywin32-ctypes.readthedocs.org/en/latest/?badge=master
:alt: 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 test_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