3
0
mirror of https://github.com/triqs/dft_tools synced 2024-11-01 03:33:50 +01:00
dft_tools/pytriqs
Olivier Parcollet ab3b9b3d4d Draft libclang based python wrapper desc generator
- Given a C++ file, e.g. a class,
  it calls libclang to parse the C++, and retrieve from
  its AST the necessary info to write a xxx_desc.py file.

- THIS IS WORK IN PROGRESS. There are several corner cases for which we
  may want (or not) the script to do better.
- It is not designed to be used automatically, but to to 90 % of the
  boring typesetting work...
- The preamble still needs manual choices

- The properties, methods, functions are automatically declared in
  the _desc file, in the simplest possible way.
- An option --properties, -p : to transform some simple methods or
  get_x, set_x into python properties, not methods.
  Cf doc.

- requires clang (tested on 3.4).
- the script is configured by cmake and installed in
  INSTALLATION_DIRECTORY/bin, with some other files.
  It can only be used for applications, after the lib has been installed.
  It is cmake configured, to include automatically the various include
  paths configure in the triqs installation, including the triqs install dir
  in order to simplify invocation.

- TODO : improve, and test more in real cases.
2014-07-08 23:37:59 +02:00
..
archive Fix missing cached key in archives 2013-12-23 13:15:27 +01:00
dos Iteration over the doc 2013-12-31 14:22:00 +01:00
fit First commit : triqs libs version 1.0 alpha1 2013-07-17 19:24:07 +02:00
gf Add missing file in installation of gf 2014-06-05 14:07:44 +02:00
lattice Wrapper : clean and document. 2014-05-31 16:10:07 +02:00
operators Fix #101 operator: add python wrapper for is_zero 2014-07-03 19:23:32 +02:00
parameters Wrapper : clean and document. 2014-05-31 16:10:07 +02:00
plot First commit : triqs libs version 1.0 alpha1 2013-07-17 19:24:07 +02:00
random_generator wrapper: add use_module 2014-05-30 19:34:13 +02:00
sumk First commit : triqs libs version 1.0 alpha1 2013-07-17 19:24:07 +02:00
utility pytriqs: add option to use mpi4py instead of boost.python.mpi 2013-12-30 22:32:09 +01:00
wrap_generator Draft libclang based python wrapper desc generator 2014-07-08 23:37:59 +02:00
__init__.py Wrapper : clean and document. 2014-05-31 16:10:07 +02:00
__init__.py.template First commit : triqs libs version 1.0 alpha1 2013-07-17 19:24:07 +02:00
CMakeLists.txt Cmake. Fix #97 and #89 2014-07-02 21:44:51 +02:00
magic.py.in magic : redirect std::cout to python sys.out.write 2014-06-11 16:25:47 +02:00
version.py.in Work on documentation 2013-09-17 14:55:55 +02:00