When Python Meets Erlang | Hornbeam

2 min read Original article ↗

Your Python code. Erlang's infrastructure.

Mix the best of Python — AI, web apps — with Erlang's distribution, concurrency, resilience, and safety.

How It Works

Two libraries that bring Python and Erlang together.

Python

AI, ML, Web Apps

Flask, FastAPI, Django
PyTorch, TensorFlow

Erlang

Erlang / BEAM

Scale & Resilience

Distribution, Concurrency
Fault Tolerance, Hot Reload

See It In Action

Python code. Erlang infrastructure. Zero complexity.

Two Libraries, One Platform

Use them together or separately.

Python Integration Library

Embed Python in your Erlang applications. Call Python functions, load modules, and share data seamlessly between both runtimes.

  • + Call any Python function from Erlang
  • + Load Python modules dynamically
  • + Automatic type conversion
  • + Process pool for concurrency

Learn more →

Hornbeam

HTTP & Application Server

WSGI/ASGI HTTP server with shared state, distributed RPC, pub/sub, and ML caching. Full application server for Python on Erlang.

  • + WSGI & ASGI support
  • + ETS shared state from Python
  • + Distributed RPC across nodes
  • + ML inference caching

Learn more →

Why Python + Erlang?

Each language excels at different things. Use both.

AI Ready

Use Python's ML ecosystem with Erlang's scale.

Distributed

Built-in clustering. No Redis or RabbitMQ needed.

Resilient

Let it crash. Supervisors restart failed processes.

No GIL

Erlang handles concurrency. Python stays simple.

Ready to Get Started?

Check out the documentation or explore the source code.