You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ismagom 0737f1e615 Initial commit 11 years ago
..
CLibrary.py Initial commit 11 years ago
CParser.py Initial commit 11 years ago
README.md Initial commit 11 years ago
__init__.py Initial commit 11 years ago
license.txt Initial commit 11 years ago
pyparsing.py Initial commit 11 years ago

README.md

pyclibrary

C parser and ctypes automation for Python.

Fork of https://launchpad.net/pyclibrary. (bzr branch lp:pyclibrary pyclibrary-bzr && mkdir pyclibrary && cd pyclibrary && bar fast-export --plain ../pyclibrary-bzr | git fast-import)

Pyclibrary includes 1) a pure-python C parser and 2) a ctypes automation library that uses C header file definitions to simplify the use of ctypes. The C parser currently processes all macros, typedefs, structs, unions, enums, function prototypes, and global variable declarations, and can evaluate typedefs down to their fundamental C types + pointers/arrays/function signatures. Pyclibrary can automatically build ctypes structs/unions and perform type conversions when calling functions via cdll/windll.