Skip to content
/ xdress Public
forked from xdress/xdress

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

License

Notifications You must be signed in to change notification settings

micklat/xdress

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XDress

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!

:ref:`Go here for previous versions of the code & documentation. <previous_versions>`

Contents

.. toctree::
    :maxdepth: 1

    tutorial
    advtut
    libref/index
    rcdocs
    previous/index
    other/index
    faq
    authors

Installation

Since xdress is pure Python code, the pip or easy_install 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://github.com/xdress/xdress.git

Also, if you wish to have the optional BASH completion, please add the following lines to your ~/.bashrc file:

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

Dependencies

XDress currently has the following external dependencies,

Run Time:

  1. pycparser, optional for C
  2. GCC-XML, optional for C++
  3. dOxygen, optional for docstrings
  4. lxml, optional (but nice!)
  5. argcomplete, optional for BASH completion

Compile Time:

  1. Cython
  2. NumPy

Examples of Use

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

  • xdress/tests: This is a fully functioning sample project which uses xdress locally (no install needed).
  • 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.

Contact Us

If you have questions or comments, please send them to the mailing list [email protected] or contact the author directly or open an issue on GitHub.

Contributing

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 92.6%
  • C++ 5.9%
  • Other 1.5%