Ctypes made easy.
Project description
Simple function-wrapping API with ctypes.
Usage
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",
library=user32,
restype=wintypes.BOOL,
params=[
Parameter("uFormat", wintypes.UINT),
Parameter("hMem", wintypes.HANDLE)
],
errcheck=null_errcheck)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pywrap-0.1.0.zip
(4.5 kB
view details)
Built Distribution
File details
Details for the file pywrap-0.1.0.zip
.
File metadata
- Download URL: pywrap-0.1.0.zip
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc9a005da83124879b0cbef493d1f89436fc32e27e17fd4803767f4019451379 |
|
MD5 | b373da1e5c4606e4697282079ca9e4f6 |
|
BLAKE2b-256 | 1cad76d6329af2e8bf58a44fe95a8b47041bcb569799c4cb8b0f5bca122fcba2 |
File details
Details for the file pywrap-0.1.0-py2.py3-none-any.whl
.
File metadata
- Download URL: pywrap-0.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b48afbeba7d394a6188178a3a3feea5e9df617466124c5cdba03b237d36ba1c |
|
MD5 | e5d7304a9a881fe5440ce8f24b563a0e |
|
BLAKE2b-256 | 84724b936444e736f963e7923bdd208d0bef40d0ef51e8072119c1a89040cf10 |