MyGit

xdress/xdress

Fork: 42 Star: 131 (更新于 2024-11-16 17:19:20)

license: NOASSERTION

Language: Python .

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

最后发布版本: 0.4 ( 2014-02-27 08:11:31)

官方网址 GitHub网址

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! <https://xdress.github.io/latest>_

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


Contents

.. toctree:: :maxdepth: 1

tutorial
advtut
libclang
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 <http://github.com/xdress/xdress>_. 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:

#. `Clang/LLVM <http://llvm.org/releases/>`_, optional for C/C++
#. `pycparser <https://github.com/eliben/pycparser>`_, optional for C
#. `GCC-XML <http://www.gccxml.org/HTML/Index.html>`_, optional for C++
#. `dOxygen <http://www.doxygen.org/>`_, optional for docstrings
#. `lxml <http://lxml.de/>`_, optional (but nice!)
#. `argcomplete <https://argcomplete.readthedocs.org/en/latest/>`_, optional for BASH completion

Compile Time:

#. `Cython <http://cython.org/>`_
#. `NumPy <http://numpy.scipy.org/>`_

Test Time:

#. `nose <https://nose.readthedocs.org/en/latest/>`_
#. `CMake <http://www.cmake.org/>`_, 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 <https://github.com/xdress/xdress/tree/master/tests/cproj>_: This is a fully functioning sample C project which uses xdress locally. THIS PROJECT IS FOR TESTING PURPOSES ONLY!
  • xdress/tests/cppproj <https://github.com/xdress/xdress/tree/master/tests/cppproj>_: This is a fully functioning sample C++ project which uses xdress locally. THIS PROJECT IS FOR TESTING PURPOSES ONLY!
  • PyNE <http://pynesim.org/>_: This uses xdress to generate STL container wrappers.
  • Bright <http://bright-dev.github.com/>_: This uses xdress to automatically wrap a suite of interacting C++ class. This was the motivating use case for the xdress project.

======= Testing

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 CMake <http://cmake.org>_ in order to build the sample projects.

========== Contact Us

If you have questions or comments, please sign up for the the mailing list at https://groups.google.com/forum/#!forum/xdress and send an email to xdress@googlegroups.com. Alternatively, please contact the authors 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 (xdress@googlegroups.com).

============= Helpful Links

  • Documentation <http://xdress.github.io/>_
  • Mailing list website <https://groups.google.com/forum/#!forum/xdress>_
  • Mailing list address <mailto:xdress@googlegroups.com>_
  • :ref:genindex
  • :ref:modindex
  • :ref:search

最近版本更新:(数据更新于 2024-10-17 05:09:17)

2014-02-27 08:11:31 0.4

2014-02-23 09:51:13 0.4-rc1

2013-08-09 15:16:38 0.3

2013-08-06 16:14:50 0.3-rc2

2013-08-05 14:03:10 v0.3-rc1

2013-07-27 11:11:44 0.1

2013-07-27 11:08:27 0.2-rc1

2013-07-03 22:29:30 0.2

xdress/xdress同语言 Python最近更新仓库

2024-11-23 07:15:18 comfyanonymous/ComfyUI

2024-11-23 02:05:08 hect0x7/JMComic-Crawler-Python

2024-11-22 19:26:55 ultralytics/ultralytics

2024-11-22 19:09:02 xtekky/gpt4free

2024-11-22 18:58:34 home-assistant/core

2024-11-22 08:12:43 jxxghp/MoviePilot