Skip to main content

caddysnake CLI

PyPI

The caddysnake package is available on PyPI and provides a CLI to serve Python WSGI/ASGI/ESGI applications powered by Caddy.

Install

pip install caddysnake

Available for Python 3.12 through 3.14 on Linux and macOS (x86_64 and ARM64).

Usage

# Start a WSGI server
caddysnake --server-type wsgi --app main:app

# Start an ASGI server
caddysnake --server-type asgi --app main:app

# Start an ESGI server
caddysnake --server-type esgi --app main:application

CLI Options

Python-handler flags mirror the Caddyfile python block. Extra flags cover listen address, HTTPS, and static files.

Flag Short Description Default
--server-type -t Required. Type of Python app: wsgi, asgi, or esgi —
--app -a Required. Python module and app variable (e.g. main:app) —
--domain -d Domain name for HTTPS with automatic certificates —
--listen -l Custom listen address :9080
--workers -w Number of worker processes (0 = CPU count) 0
--max-dynamic-apps Max distinct dynamic Python apps 128
--request-body-max-size Maximum HTTP request body size (e.g. 1KiB, 2GB) unlimited
--python-path Path to the Python interpreter —
--working-dir Working directory for the Python app —
--venv Path to a Python virtual environment —
--env-file Dotenv file for worker env (repeatable) —
--env-var Inline worker env var NAME=VALUE (repeatable) —
--start-timeout Worker readiness wait (120s default; use =-1 or forever for indefinite) 120s
--runtime WSGI: sync|gevent; ESGI: gevent; ASGI: native|uvloop per interface
--lifespan ASGI lifespan events (on|off) off
--static-path Path to a static files directory —
--static-route Route prefix for static files /static
--debug Enable debug logging false
--access-logs Enable access logs false
--autoreload Watch .py files and reload on changes false

How it works

This package is built with maturin and distributed as platform-specific wheel files. Each wheel bundles a pre-compiled Caddy binary with the caddy-snake plugin (caddysnake-cli). The Python CLI wrapper (caddysnake_cli.py) uses click to parse arguments and then executes the bundled Caddy binary with os.execv.

The package is built and published automatically on tagged releases by the python-build.yml GitHub Actions workflow.

Full Documentation

See https://caddy-snake.readthedocs.io for complete documentation, including:

Metadata

Release files for caddysnake 0.6.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for caddysnake 0.6.3
File
caddysnake-0.6.3-cp314-cp314-manylinux_2_34_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.34+ x86-64 Details
caddysnake-0.6.3-cp314-cp314-manylinux_2_34_aarch64.whl CPython 3.14 CPython 3.14 Linux glibc 2.34+ ARM64 Details
caddysnake-0.6.3-cp314-cp314-macosx_11_0_arm64.whl CPython 3.14 CPython 3.14 macOS 11.0+ ARM64 Details
caddysnake-0.6.3-cp314-cp314-macosx_10_12_x86_64.whl CPython 3.14 CPython 3.14 macOS 10.12+ x86-64 Details
caddysnake-0.6.3-cp313-cp313-manylinux_2_34_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.34+ x86-64 Details
caddysnake-0.6.3-cp313-cp313-manylinux_2_34_aarch64.whl CPython 3.13 CPython 3.13 Linux glibc 2.34+ ARM64 Details
caddysnake-0.6.3-cp313-cp313-macosx_11_0_arm64.whl CPython 3.13 CPython 3.13 macOS 11.0+ ARM64 Details
caddysnake-0.6.3-cp313-cp313-macosx_10_12_x86_64.whl CPython 3.13 CPython 3.13 macOS 10.12+ x86-64 Details
caddysnake-0.6.3-cp312-cp312-manylinux_2_34_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.34+ x86-64 Details
caddysnake-0.6.3-cp312-cp312-manylinux_2_34_aarch64.whl CPython 3.12 CPython 3.12 Linux glibc 2.34+ ARM64 Details
caddysnake-0.6.3-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details
caddysnake-0.6.3-cp312-cp312-macosx_10_12_x86_64.whl CPython 3.12 CPython 3.12 macOS 10.12+ x86-64 Details

Total release size: 206.0 MB

Release files / caddysnake-0.6.3-cp314-cp314-manylinux_2_34_x86_64.whl

Download URL caddysnake-0.6.3-cp314-cp314-manylinux_2_34_x86_64.whl
Size 17.7 MB
Tags CPython 3.14 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
8976737f8f35824a69f3916af219cc94fdf17c0095f21f8829bdf74101135d17
BLAKE2b-256 checksum
How to use checksums
9176f943fa8df094eba13aeaf8f6206d12461ddcb756ae71f675ee4b877336d4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 22, 2026.

Transparency log

Release files / caddysnake-0.6.3-cp314-cp314-manylinux_2_34_aarch64.whl

Download URL caddysnake-0.6.3-cp314-cp314-manylinux_2_34_aarch64.whl
Size 16.1 MB
Tags CPython 3.14 Linux glibc 2.34+ ARM64
SHA-256 checksum
How to use checksums
5e974265acf102cecffea0295e615684204b153512c03b2bee685f51ae2a7ac8
BLAKE2b-256 checksum
How to use checksums
030fed4f38d3f5b8d2fda837384712d5f80a21d0da7b7ccb7498ffae1a45ee6c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 22, 2026.

Transparency log

Release files / caddysnake-0.6.3-cp314-cp314-macosx_11_0_arm64.whl

Download URL caddysnake-0.6.3-cp314-cp314-macosx_11_0_arm64.whl
Size 16.8 MB
Tags CPython 3.14 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
c86a4d2c9b3a75a1a462e27cf0c6d3085553a76ba2e366865101f376dddbeae5
BLAKE2b-256 checksum
How to use checksums
07e813dc46467e4e2ccdb783735b5fe2cbd0c74df55849583c73e7881d1d3ec6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 22, 2026.

Transparency log

Release files / caddysnake-0.6.3-cp314-cp314-macosx_10_12_x86_64.whl

Download URL caddysnake-0.6.3-cp314-cp314-macosx_10_12_x86_64.whl
Size 18.0 MB
Tags CPython 3.14 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
53c984b72c67b51172f97ac4a14b5d268ab7fc11cae53c017d090abfbdf8c8b4
BLAKE2b-256 checksum
How to use checksums
be9cf2d0087cfc210c7bb4e057dcc890a7a97b755ba9bf8de3ce6f2236222dfd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 22, 2026.

Transparency log

Release files / caddysnake-0.6.3-cp313-cp313-manylinux_2_34_x86_64.whl

Download URL caddysnake-0.6.3-cp313-cp313-manylinux_2_34_x86_64.whl
Size 17.7 MB
Tags CPython 3.13 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
f6f33ef25a5c89e563ee7d6dd2e34393c347205ff834a1c788530a7773db9bc2
BLAKE2b-256 checksum
How to use checksums
0fffbbeeadb3d3281308495a0f834b54d619ec1ae8c11bbe078f40b89a73ec17
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 22, 2026.

Transparency log

Release files / caddysnake-0.6.3-cp313-cp313-manylinux_2_34_aarch64.whl

Download URL caddysnake-0.6.3-cp313-cp313-manylinux_2_34_aarch64.whl
Size 16.1 MB
Tags CPython 3.13 Linux glibc 2.34+ ARM64
SHA-256 checksum
How to use checksums
68ab6348ff525d6583ba81c63b230efcf861c06c5340e688754dd11e574f05ed
BLAKE2b-256 checksum
How to use checksums
b0e380fdd3cfea1510cf5062353067f8b874c0e13c28bc3d5930235f3a52b01d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 22, 2026.

Transparency log

Release files / caddysnake-0.6.3-cp313-cp313-macosx_11_0_arm64.whl

Download URL caddysnake-0.6.3-cp313-cp313-macosx_11_0_arm64.whl
Size 16.8 MB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
3492c4f624f86249a931c7284b629164e87f92517864740ef68e607a2f7bcb2b
BLAKE2b-256 checksum
How to use checksums
5f832d4f1d3a4259111187ec3131121dfffd39507f6d4519947fae07a6154036
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 22, 2026.

Transparency log

Release files / caddysnake-0.6.3-cp313-cp313-macosx_10_12_x86_64.whl

Download URL caddysnake-0.6.3-cp313-cp313-macosx_10_12_x86_64.whl
Size 18.0 MB
Tags CPython 3.13 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
14928c4c3150ac98962e40518ad5040ee53fe286672fafb429f51cba5e38e96f
BLAKE2b-256 checksum
How to use checksums
28caf9f7e7fde49a544913642d8115dad5931d6d20b148f5a0c45ac4fd216102
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 22, 2026.

Transparency log

Release files / caddysnake-0.6.3-cp312-cp312-manylinux_2_34_x86_64.whl

Download URL caddysnake-0.6.3-cp312-cp312-manylinux_2_34_x86_64.whl
Size 17.7 MB
Tags CPython 3.12 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
65038bfed9af8ba4cb78a97670ca84972d1c9fc0c874817756dccb6b71abf6d0
BLAKE2b-256 checksum
How to use checksums
f85fda7c10ece1c0812acc0d0921343c7b46b203cc48cb3c07ef45ab8bc8b0b7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 22, 2026.

Transparency log

Release files / caddysnake-0.6.3-cp312-cp312-manylinux_2_34_aarch64.whl

Download URL caddysnake-0.6.3-cp312-cp312-manylinux_2_34_aarch64.whl
Size 16.1 MB
Tags CPython 3.12 Linux glibc 2.34+ ARM64
SHA-256 checksum
How to use checksums
75b73ad57abff6fd0170b4d862e11eff8a7318c05b88997944cd7677b3984ad8
BLAKE2b-256 checksum
How to use checksums
8b02dfb07ff550d4453be0fd995dd243c755666ca8cee38d01b8cd40b8244dcc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 22, 2026.

Transparency log

Release files / caddysnake-0.6.3-cp312-cp312-macosx_11_0_arm64.whl

Download URL caddysnake-0.6.3-cp312-cp312-macosx_11_0_arm64.whl
Size 16.8 MB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
e7d04b9158d21467bc156ce9dd6cc7089ced2ddf6beeb80ff0eb0a2345f1e663
BLAKE2b-256 checksum
How to use checksums
85c7b01252e99ed9e60ed199981f43b229bf7e95cfb650720c7616ce2ffdc7b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 22, 2026.

Transparency log

Release files / caddysnake-0.6.3-cp312-cp312-macosx_10_12_x86_64.whl

Download URL caddysnake-0.6.3-cp312-cp312-macosx_10_12_x86_64.whl
Size 18.0 MB
Tags CPython 3.12 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
371d3cd728ef5fbe5b4a22374e7c95a53b7a0313ec95a726b4f80d2180635f0a
BLAKE2b-256 checksum
How to use checksums
5a2732803a444d85a7d2441c39fc10841c7116ec3ed3a0287bb41a6cfc0c5ac1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 22, 2026.

Transparency log
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page