Andrew Stern
Andrew Stern

Reputation: 698

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?

Upvotes: 5

Views: 11125

Answers (2)

Alexander Gladysh
Alexander Gladysh

Reputation: 41393

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.

Upvotes: 5

lhf
lhf

Reputation: 72312

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

Upvotes: 7

Related Questions