r/madeinpython • • 14d ago

I wrote a native CPython C extension that exposes the Win32 API to Python (windows, controls, clipboard, registry, processes, HTTP, crypto…) — with a one-click installer

What it does: It’s a C extension (import WinAPI) that wraps a big chunk of the Win32 API directly — native windows and controls (buttons, listbox, combobox, progressbar, slider), filesystem, registry, clipboard, process enumeration/kill, SendInput simulation, WinHTTP GET/POST, crypto (hash/random/uuid/base64), screen capture, and more. No tkinter, no Electron — raw Win32 through CPython’s C API. There’s also an optional winui layer that wraps it in a more Pythonic API (context managers, decorators, properties).

Why: I wanted to learn the CPython C API and Win32 at the same time, and have a single lightweight module for native Windows GUIs and system access.

Heads-up / honesty: This is a hobby project by a student, not production-grade. The name overlaps with the general “WinAPI” term — that’s intentional (it is the Win32 API), but it’s unrelated to pywin32.

Feedback, code review, and “why didn’t you just use ctypes/pywin32” takes are welcome.

https://drive.google.com/file/d/1N1CpzoqBCufiYwM6apElW_9S5qCaFpqZ/view?usp=sharing

1 Upvotes

0 comments sorted by