Execute Python from Erlang using dirty NIFs with GIL-aware execution, rate limiting, and free-threading support
// momentum
// why it's here
- Active: last commit today
- Built almost entirely by one person
- Accepts sponsorship (github)
// how to help
// readme
erlang_python
Combine Pythonβs ML/AI ecosystem with Erlangβs concurrency.
Run Python code from Erlang or Elixir with true parallelism, async/await support, and seamless integration. Build AI-powered applications that scale.
Overview
erlang_python embeds Python into the BEAM VM, letting you call Python functions, evaluate expressions, and stream from generators - all without blocking Erlang schedulers.
Parallelism options:
- Worker mode (default, recommended) - Works with any Python version. With free-threaded Python (3.13t+), provides true parallelism automatically.
- OWN_GIL sub-interpreters (Python 3.14+) - Each interpreter has its own GIL, true parallelism.
- BEAM processes - Fan out work across lightweight Erlang processes.