py_cppmodel is a Python wrapper around clang's python bindings to generate a
simple Python model of a C++ translation unit.
To set up the development environment, execute the following commands:
uv syncTo run the tests, run:
uv run pytestTo run type checking:
uv run mypy *.py --check-untyped-defsWe've made considerable use of the following in putting this together:
- http://szelei.me/code-generator
- http://blog.glehmann.net/2014/12/29/Playing-with-libclang
- http://eli.thegreenplace.net/tag/llvm-clang
Design of the python bindings is taken from clang's cindex.
Mistakes are our own.