Filewatcher File Search File Search
Content Search
» » » » »


code generator to convert header files into ctypes interfaces

Ctypeslib is a code generator capable of converting C header files into xml files (using gccxml), and then converting the xmlfiles into Python modules which define a ctypes interface to the corresponding C library.

Ctypeslib is not ctypes. Ctypes is included in python2.5+, while ctypeslib is a lesser known add-on by the ctypes author. If you use ctypes a lot and are tired of setting argtypes and restype of the called functions, you should look into ctypeslib. Ctypeslib can also set up data types and structures from C header files automatically. Ctypeslib could be used to integrate Python with an existing C project, or from the start with a new project to ease development of a Python/C interface.

Package version:0.0.0+svn20100125-2


ctypeslib for Debian

Ctypeslib is unreleased as of yet, however worked very well for its
stated usage of automatically generating ctypes interfaces from C or
C++ header files.

As far as I can tell, there are not a large number of users of
ctypeslib yet.  I hope that this Debian package will build a userbase
and get bugs worked out and features added as needed.

There are ot


ctypeslib(1)                User Commands               ctypeslib(1)

       h2xml - convert header files to XML intermediates
       xml2py - convert XML intermediates to Python ctypes interface

       h2xml includefile ... [options] -o outputxmlfile
       xml2py xmlfile ... [options] -o outputpyfile

       ctypeslib  is a Python code generator capable of convert


python-ctypeslib (0.0.0+svn20100125-2) unstable; urgency=low

  * Create and include a manual page.  There is one manual page accessible
    under the names `ctypeslib`, `h2xml`, and `xml2py` now.
  * Add explicit source format 1.0 designation.

 -- Richard Darst <>  Wed, 14 Apr 2010 15:56:04 -0400

python-ctypeslib (0.0.0+svn20100125-1) unstable; urgency=low

  * Initial release (Clos


2009-01-16  Thomas Heller  <>

	* Add the ability to generate code for variables e


- Manual pages for h2xml and xml2py
- Fix so that "tests" command returns false on test fai


ctypes code generator TODO list

.. contents::

gccxml bugs


Name: python

Browse inside python-ctypeslib_0.0.0+svn20100125-2_all.deb

         [DIR]DEBIAN/ (4)  65535+ mirrors
         [DIR]usr/ (3)  65535+ mirrors

Download python-ctypeslib_0.0.0+svn20100125-2_all.deb

Results 1 - 1 of 1
Help - FTP Sites List - Software Dir.
Search over 15 billion files
© 1997-2016