$npx skillfedfor your agent

lupa

Python wrapper around Lua and LuaJIT

With conditionsPyPI Software DevelopmentReleased Apr 202631.3M downloads / moMIT stylePlatform wheel

Decision gist · record as of 2026-08-14

platform wheels — lupa-2.8-cp310-abi3-win32.whl · lupa-2.8-cp310-abi3-win_arm64.whl · lupa-2.8-cp310-cp310-macosx_11_0_arm64.whl
v2.8 · released 2026-04-15 · Python >=3.8

Yes, if you need to run Lua or LuaJIT code from Python for performance-critical sections. The package is actively maintained, has no known vulnerabilities, uses a permissive license, and ships prebuilt wheels for common platforms. Install friction is moderate but manageable. Not necessary if you don't have a specific performance requirement that Lua's JIT compilation addresses.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.8 or later; compiled extension module requires appropriate C compiler or prebuilt wheel for your platform.
  • Medium install friction due to compiled wheels; prebuilt binaries available for Python 3.8+ across Windows, macOS, and Linux architectures.
  • Actively maintained with recent commits and stable status.

License · maintenance · safety

MIT style (permissive) — MIT-style permissive license allows commercial and private use with minimal restrictions; suitable for most projects.

last release 2026-04-15 (121 days) · last repo commit 2026-07-17 · 1,147 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 31,324,856 downloads/mo, #789 on PyPI

Verify before relying

from lupa import LuaRuntime
lua = LuaRuntime()
result = lua.eval('1+1')
print(result)

lua_func = lua.eval('function(f, n) return f(n) end')
def py_add(n):
    return n+1
print(lua_func(py_add, 2))
  • Performance characteristics compared to pure Python for typical workloads
  • Memory overhead of maintaining separate Lua runtime state alongside Python
  • Compatibility details with specific LuaJIT or Lua versions on edge-case platforms
Same gist for agents: .md · .json

What it is and what it does

Lupa is a Python wrapper that integrates Lua or LuaJIT runtimes directly into CPython processes. It allows you to execute Lua code from Python, call Python functions from Lua, and exchange objects between the two languages at runtime. The package is written in Cython and supports multiple Lua versions as well as LuaJIT where available.

The primary use case is leveraging Lua's speed—particularly LuaJIT's JIT compilation—for performance-critical sections of Python applications without the overhead of separate processes or heavy binary extension development. Lua is designed for embedding and has a small runtime footprint. Lupa frees the GIL when calling into Lua and supports threading across separate runtime instances, making it suitable for concurrent workloads that need raw computational speed alongside Python's ecosystem.

Use it for

  • Embed fast, dynamically-compiled Lua code in Python for compute-intensive loops or algorithms where LuaJIT's speed matters.
  • Write hot-path logic in Lua while keeping orchestration and I/O in Python, switching languages at runtime based on performance needs.
  • Execute user-supplied Lua scripts safely within a Python application by isolating them in separate Lua runtime states.
  • Prototype or iterate on performance-critical code in Lua without recompiling C extensions, then optimize in Python once stable.
  • Call Python libraries and functions from Lua code, bridging the Lua ecosystem's limitations with Python's rich standard library.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you need to run Lua or LuaJIT code from Python for performance-critical sections.

The package is actively maintained, has no known vulnerabilities, uses a permissive license, and ships prebuilt wheels for common platforms. Install friction is moderate but manageable. Not necessary if you don't have a specific performance requirement that Lua's JIT compilation addresses.

Install

lupa on PyPI

Before you install

Medium install friction due to compiled wheels; prebuilt binaries available for Python 3.8+ across Windows, macOS, and Linux architectures. Actively maintained with recent commits and stable status.

Requires Python 3.8 or later; compiled extension module requires appropriate C compiler or prebuilt wheel for your platform.

License in practice

MIT-style permissive license allows commercial and private use with minimal restrictions; suitable for most projects.

Quickstart

from lupa import LuaRuntime
lua = LuaRuntime()
result = lua.eval('1+1')
print(result)

lua_func = lua.eval('function(f, n) return f(n) end')
def py_add(n):
    return n+1
print(lua_func(py_add, 2))

Verify before relying

  • Performance characteristics compared to pure Python for typical workloads
  • Memory overhead of maintaining separate Lua runtime state alongside Python
  • Compatibility details with specific LuaJIT or Lua versions on edge-case platforms

Package facts

LicenseMIT style permissive
Python supportSupports the current Python release >=3.8
Install frictionMedium. Platform-specific wheel
Runtime dependenciesNone
MaintenanceActively maintained 121 days since the last release
Last repo commit
First released
Downloads31,324,856 / month, #789 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableIntended Audience :: DevelopersIntended Audience :: Information TechnologyOperating System :: OS IndependentProgramming Language :: CythonProgramming Language :: LuaProgramming Language :: Other Scripting EnginesProgramming Language :: Python :: 3Topic :: Software Development

Evidence: lupa-2.8-cp310-abi3-win32.whl; lupa-2.8-cp310-abi3-win_arm64.whl; lupa-2.8-cp310-cp310-macosx_11_0_arm64.whl; lupa-2.8-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl; lupa-2.8-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl; lupa-2.8-cp310-cp310-win_amd64.whl; lupa-2.8-cp311-cp311-macosx_11_0_arm64.whl; lupa-2.8-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl; lupa-2.8-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl; lupa-2.8-cp311-cp311-win_amd64.whl; lupa-2.8-cp312-abi3-macosx_10_13_x86_64.whl; lupa-2.8-cp312-abi3-manylinux2010_i686.manylinux_2_12_i686.manylinux_2_28_i686.whl; lupa-2.8-cp312-abi3-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl; lupa-2.8-cp312-abi3-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl; lupa-2.8-cp312-abi3-manylinux_2_34_riscv64.manylinux_2_39_riscv64.whl; lupa-2.8-cp312-abi3-musllinux_1_2_aarch64.whl; lupa-2.8-cp312-abi3-musllinux_1_2_armv7l.whl; lupa-2.8-cp312-abi3-musllinux_1_2_i686.whl; lupa-2.8-cp312-abi3-musllinux_1_2_ppc64le.whl; lupa-2.8-cp312-abi3-musllinux_1_2_riscv64.whl

Tags

Capabilities
lua python integrationembed lua in pythonluajit wrapperpython lua bridgecall lua from pythonlua runtime embeddingpython luajit binding
Topics
lua-integrationperformance-optimizationembedded-runtime

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “lua python integration”

  • lupaLupa embeds Lua or LuaJIT runtimes into CPython, allowing you to…
  • luaparserParses Lua source code into an abstract syntax tree (AST) and…
  • tree-sitter-luaProvides a tree-sitter grammar for parsing Lua 5.x and LuaJIT 2.x…

Give your agent the search over MCP, or paste the wish link into any chat.

More Software Development packages

typing-extensions Worth it
PyPI · Software Development · released Jul 2026

Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.

PSF-2.0pure Python · 3.9+
1.9Bdownloads / mo
numpy Worth it
PyPI · Software Development · released Aug 2026

NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.

BSD-3-Clause AND 0BSD AND MIT AND Zlib AND CC0-1.0compiled wheel · 3.12+
1.1Bdownloads / mo
fastapi Worth it
PyPI · Software Development · released Jul 2026

FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.

MITpure Python · 3.10+
568.6Mdownloads / mo
annotated-doc With conditions
PyPI · Software Development · released Jul 2026

Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.

MITpure Python · 3.9+
456.2Mdownloads / mo
typer Worth it
PyPI · Software Development · released Aug 2026

Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.

Install it if you are building CLIs in Python.

MITpure Python · 3.10+
369.3Mdownloads / mo
distlib With conditions
PyPI · Software Development · released Jun 2026

Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.

permissive licensepure Python
323.3Mdownloads / mo

See also luaparser · threadloop · tree-sitter-lua · synchronicity · burner-redis · pyston · mini-racer · cffi · py4j · uhi