Skip to main content

pywrap

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)

Metadata

Release files for pywrap 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pywrap 0.1.0
File Size Uploaded
pywrap-0.1.0.zip 4.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pywrap 0.1.0
File Interpreter ABI Platform
pywrap-0.1.0-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 7.5 kB

Release files / pywrap-0.1.0.zip

Download URL pywrap-0.1.0.zip
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
cc9a005da83124879b0cbef493d1f89436fc32e27e17fd4803767f4019451379
BLAKE2b-256 checksum
How to use checksums
1cad76d6329af2e8bf58a44fe95a8b47041bcb569799c4cb8b0f5bca122fcba2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pywrap-0.1.0-py2.py3-none-any.whl

Download URL pywrap-0.1.0-py2.py3-none-any.whl
Size 3.0 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
5b48afbeba7d394a6188178a3a3feea5e9df617466124c5cdba03b237d36ba1c
BLAKE2b-256 checksum
How to use checksums
84724b936444e736f963e7923bdd208d0bef40d0ef51e8072119c1a89040cf10
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page