Skip to main content

Caddy with an embedded python distribution

· One min read
Miguel Liezun
Senior Software Engineer @ Gencove

Now you can retrieve a precompiled binary of caddy with caddy-snake and your preferred version of Python.

Check out the latest release of caddy-snake.

The following python versions are available: 3.12, 3.13 and 3.13+freethreading (nogil).

After downloading the precompiled binary you can do:

$ caddy python-server --app main:app --server-type wsgi

This will automatically start a caddy server that serves your WSGI app located in main:app Python module.

See caddy python-server --help for more instructions.

Docs Release

· One min read
Miguel Liezun
Senior Software Engineer @ Gencove

Releasing docs for caddy-snake a plugin provides native support for Python apps.

It uses the Python C API to run applications directly inside Caddy, avoiding the need for an extra layer of HTTP proxy.

Supports both WSGI and ASGI, which means you can run all types of frameworks like Flask, Django and FastAPI.