Installation or online usage#
You can either use litgen online, or install it locally.
Use litgen online#
You do not to install anything. Simply:
Set some conversion options
Paste the API of the code for which you want to generate bindings
Generate the binding code (C++ and python stubs), which you can then copy and paste into your project.
Install litgen locally#
If installing locally, you can integrate liten into your building process, and it can generate full C++ bindings files, as well as python stubs (API documentation and declaration).
Install litgen with pip:
pip install "litgen@git+https://github.com/pthom/litgen"
Then, follow the instructions in Quickstart with litgen section.