lupa icon indicating copy to clipboard operation
lupa copied to clipboard

How to define lua modules in Python

Open kedare opened this issue 1 year ago • 0 comments

Hello.

I am porting a project currently made with Go and https://github.com/yuin/gopher-lua to Python and Lupa.

The way the bridge between the host and the lua interpreter is very different on each system.

I found that on lupa you can easily inject directly globals, but I am looking to make a lua module in python that could be loaded via require("my_lua_module_in_python") kind of how it's done with gopher-lua there https://github.com/yuin/gopher-lua?tab=readme-ov-file#creating-a-module-by-go

No luck so far checking the documentation, is this something possible ?

Thanks

kedare avatar Oct 17 '24 10:10 kedare