Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How could I embed Lua into Python 3.x?

Is it possible to embed Lua into Python 3.x? If so how could I run and execute Lua scripts within my Python program? How good would the interaction be between the Languages for instance would Lua have access to all of Python's variables and classes and would Python have access to all of Lua's information?

like image 409
Andrew Stern Avatar asked Dec 24 '10 16:12

Andrew Stern


2 Answers

Try Lunatic Python, a two-way bridge between Python and Lua.

like image 53
lhf Avatar answered Sep 22 '22 01:09

lhf


In addition to Lunatic Python, there is Lupa, powered by LuaJIT:

http://pypi.python.org/pypi/lupa/0.9

See the link about advantages and reasons to use it.

like image 21
Alexander Gladysh Avatar answered Sep 26 '22 01:09

Alexander Gladysh