Bridges are a part of Leon that allow to make the connection between his core and his modules. You can think of them as connectors too. The bridges also execute the Leon's modules. Actually, the core creates a Node.js child process which executes the given module.
In the future, we would like to have the possibility to write Leon's modules in other languages and not only Python.
Bridges can be found in the
The Python bridge is the reason why Leon needs Python to work today. Because there is only one bridge available until now.
If you wish to execute a Python module standalone, without a child process, run the following command from the project root directory:
PIPENV_PIPFILE=bridges/python/Pipfile pipenv run python bridges/python/main.py server/src/query-object.sample.json
To understand what is the
query-object.sample.json file for, take a look at this section.