lupa
lupa copied to clipboard
Lua in Python
I've created a [fork](https://github.com/synodriver/lupa/tree/openresty) with that support, but have no idea whether to realease a new package or just merge to upstream. Would you consider adding some [new apis](https://github.com/synodriver/lupa/blob/openresty/lupa/lua.pxd#L268-L273) for...
I'd love to see an option to limit the max memory usage of a single LuaRuntime. Lua supports passing a custom allocator function to [`lua_newstate`](https://www.lua.org/manual/5.1/manual.html#lua_newstate) which could refuse to allocate...
``` lua = lupa.LuaRuntime() lua_func = lua.eval("function (round) local min = 3 local max = 15 if round >= 3 then min = math.pow(2,3) max = 20 end return min,max...
Hello, Is there any way to use table_from method given a nested dictionary to produce the corresponding lua table? What I would like to achieve is something like this: ```...
> Luau (lowercase u, /ˈlu.aʊ/) is a fast, small, safe, gradually typed embeddable scripting language derived from Lua. https://luau-lang.org Lupa should have support for Luau. Luau's C APIs have some...
I followed this guide to install lupa on my Mac, but something went wrong.  Any help? Thanks! Environment: Lua version 5.3.5 Pip version 19.2.3 Python version 3.7.4 macOS...
Hi , I encounter similar segfault behavior as mentioned in #84 and managed to debug and fix it, thanks to provided reproducing script. This issue seems to be related with...
## Problem 1: error objects and stack tracebacks Currently, when you call a Lua function from Python, it uses the [`debug.traceback`](https://www.lua.org/manual/5.4/manual.html#pdf-debug.traceback) message handler, which adds the stack traceback to the...
I'm working with some code, trying to setup a sandbox for running untrusted user code on my server. Currently one of my protections is against endless loops - this is...