description | win32 api bindings written in pure python with ctypes |
owner | madewokherd@gmail.com |
last change | Sat, 25 Jul 2009 21:54:02 +0000 (25 16:54 -0500) |
URL | git://repo.or.cz/pywinlite.git |
| https://repo.or.cz/pywinlite.git |
push URL | ssh://repo.or.cz/pywinlite.git |
| https://repo.or.cz/pywinlite.git (learn more) |
bundle info | pywinlite.git downloadable bundles |
content tags
|
|
readme
Pywinlite is a set of bindings for the Windows API written in pure Python.
As of right now, it's very incomplete; I am hoping it will become more complete
as I start to use it (and, of course, implement the things I need).
If this project is useful or potentially useful to you, drop me a line. I'm
currently going by the assumption that no one much cares except me.
I'm working based on these guidelines:
* Try to put logical groups of constants, types, and functions in a single
module. MSDN is often a good guide for this but is not perfect.
* Export functions similar to those used in the C API. If it's easy, raise
exceptions when errors occur and transform out parameters into return
values.
* Wrap ANSI/Unicode functions generically so that one or the other can be
selected at runtime. As of right now, this selection can be made one time
at the start of a program, and it defaults to Unicode (no automatic ANSI
fall-back just yet). ANSI functions can be used by calling
winlitecfg.set_ansi(). Do not export A- or W-suffixed functions.
* If the API can be made less awkward by wrapping things in a Python type, do
it. Otherwise, don't. Windows are wrapped (because making window classes can
be awkward), but cursors are not.
* Release things even if they are only slightly useful, and mark the bits that
are incomplete.
Enjoy.
Vincent Povirk
madewokherd@gmail.com