Je reviens vers vous pour votre avis sur lupa : sur le papier ça pourrait m' être utile par rapport au sujet en question, mais dans la vraie vie, j' ignore si ça règle le problème.
Released: Dec 21, 2019
https://pypi.org/project/lupa/
extrait:
Lupa integrates the runtimes of Lua or LuaJIT2 into CPython. It is a partial rewrite of LunaticPython in Cython with some additional features such as proper coroutine support.
Major features
separate Lua runtime states through a LuaRuntime class
Python coroutine wrapper for Lua coroutines
iteration support for Python objects in Lua and Lua objects in Python
proper encoding and decoding of strings (configurable per runtime, UTF-8 by default)
frees the GIL and supports threading in separate runtimes when calling into Lua
tested with Python 2.6/3.2 and later
written for LuaJIT2 (tested with LuaJIT 2.0.2), but also works with the normal Lua interpreter (5.1 and 5.2)
easy to hack on and extend as it is written in Cython, not C
Le projet ancestral lunatic python est mort
Lunatic Python is a two-way bridge between Python and Lua, allowing these languages to intercommunicate. Being two-way means that it allows Lua inside Python, Python inside Lua, Lua inside Python inside Lua, Python inside Lua inside Python, and so on.
Peut on passer des objet python complexes dans lua qui lui va ensuite dans un moteur rust ou c++ ?