How to use the lupa._lupa._LuaTable function in lupa

To help you get started, we’ve selected a few lupa examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github airscript / airscript-engine / runtime / __init__.py View on Github external
def _is_mapping(value):
        return isinstance(value, lupa._lupa._LuaTable) or \
                isinstance(value, dict)
    for value in response:
github airscript / airscript-engine / runtime / json.py View on Github external
def default(self, obj):
        if isinstance(obj, lupa._lupa._LuaTable):
            return dict(obj)
        return json.JSONEncoder.default(self, obj)

lupa

Python wrapper around Lua and LuaJIT

MIT
Latest version published 7 months ago

Package Health Score

75 / 100
Full package analysis

Similar packages