Need help with xdress?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

124 Stars 44 Forks Other 891 Commits 86 Opened issues


Cython-based, NumPy-aware automatic wrapper generation for C / C++.

Services available


Need anything else?

Contributors list


XDress is an automatic wrapper generator for C/C++ written in pure Python. Currently, xdress may generate Python bindings (via Cython) for C++ classes & functions and in-memory wrappers for C++ standard library containers (sets, vectors, maps). In the future, other tools and bindings will be supported.

The main enabling feature of xdress is a dynamic type system that was designed with the purpose of API generation in mind.

Go here for the latest version of the docs! 


Go here for previous versions of the code & documentation. 


.. toctree:: :maxdepth: 1




Since xdress is pure Python code, the

may be used to grab and install the code::
$ pip install xdress

$ easy_install xdress

The source code repository for xdress may be found at the

GitHub project site 
_. You may simply clone the development branch using git::
git clone git://

Also, if you wish to have the optional BASH completion, please add the following lines to your

# Enable completion for xdress
eval "$(register-python-argcomplete xdress)"



XDress currently has the following external dependencies,

Run Time:

#. `Clang/LLVM `_, optional for C/C++
#. `pycparser `_, optional for C
#. `GCC-XML `_, optional for C++
#. `dOxygen `_, optional for docstrings
#. `lxml `_, optional (but nice!)
#. `argcomplete `_, optional for BASH completion

Compile Time:

#. `Cython `_
#. `NumPy `_

Test Time:

#. `nose `_
#. `CMake `_, optional for integration tests

To install the dependencies on Ubuntu 14.04 use the following command::

$ apt-get install -y gccxml cython python-numpy python-pycparser python-nose cmake python-lxml llvm-dev libedit-dev libclang-3.5-dev
$ apt-get remove -y llvm-3.4


Examples of Use

To see examples of xdress in action (and sample run control files), here are a few places to look:

  • xdress/tests/cproj 
    _: This is a fully functioning sample C project which uses xdress locally. THIS PROJECT IS FOR TESTING PURPOSES ONLY!
  • xdress/tests/cppproj 
    _: This is a fully functioning sample C++ project which uses xdress locally. THIS PROJECT IS FOR TESTING PURPOSES ONLY!
  • PyNE 
    _: This uses xdress to generate STL container wrappers.
  • Bright 
    _: This uses xdress to automatically wrap a suite of interacting C++ class. This was the motivating use case for the xdress project.



XDress has two major test types: unit tests which test library functionality and integration tests which test the command line tool, the parsers, compilers, etc. The unit tests are generally fast while the integration are slower. From the tope level of the repository you may use nose to run the tests together or individually::

# Run just the unit tests
$ nosetests -a unit

Run just the integration tests

$ nosetests -a integration

Run all of the tests together

$ nosetests

Note that the integration tests require

_ in order to build the sample projects.


Contact Us

If you have questions or comments, please sign up for the the mailing list at!forum/xdress and send an email to [email protected] Alternatively, please contact the authors directly or open an issue on GitHub.



We highly encourage contributions to xdress! If you would like to contribute, it is as easy as forking the repository on GitHub, making your changes, and issuing a pull request. If you have any questions about this process don't hesitate to ask the mailing list ([email protected]).


Helpful Links

  • Documentation 
  • Mailing list website 
  • Mailing list address 
  • :ref:
  • :ref:
  • :ref:

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.