Skip to main content

Ctypes made easy.

Project description

Simple function-wrapping API with ctypes.


Replace this:

prototype = ctypes.WINFUNCTYPE(wintypes.HANDLE, wintypes.UINT, wintypes.HANDLE)
paramflags = (1, "uFormat"), (1, "hMem")
SetClipboardData = prototype(("SetClipboardData", user32), paramflags)
SetClipboardData.errcheck = null_errcheck

With this:

SetClipboardData = pywrap.wrap_winapi(name="SetClipboardData",
                                            Parameter("uFormat", wintypes.UINT),
                                            Parameter("hMem", wintypes.HANDLE)

Project details

Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pywrap, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size pywrap-0.1.0-py2.py3-none-any.whl (3.0 kB) File type Wheel Python version 2.7 Upload date Hashes View
Filename, size (4.5 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page