Nov-03-2018, 12:13 PM
(This post was last modified: Nov-03-2018, 12:13 PM by Gribouillis.)
Obviously people thought of using pycparser for generating ctypes wrappers. A search for the keywords
pycparser ctypes
yields this module among other results. Could it be what you're looking for?