Skip to main content

caddysnake CLI

PyPI

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

Install

pip install caddysnake

Available for Python 3.13 through 3.15 on Linux (x86_64, ARM64 and RISC-V 64) 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

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 or asgi —
--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; ASGI: native|uvloop per interface
--lifespan ASGI lifespan events (on|off) off
--cache-mode Cache topology: local|cluster local
--cache-listen Cluster peer TCP listener (host:port) —
--cache-advertise Dialable address identifying this peer —
--cache-peer Static cluster peer address (repeatable) —
--cache-namespace Namespace shared by every cluster peer —
--cache-secret Shared peer secret (16–4096 bytes) —
--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.7.1

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.7.1
File Actions
caddysnake-0.7.1-cp315-cp315-manylinux_2_34_x86_64.whl CPython 3.15 CPython 3.15 Linux glibc 2.34+ x86-64 Details for caddysnake-0.7.1-cp315-cp315-manylinux_2_34_x86_64.whl
caddysnake-0.7.1-cp315-cp315-manylinux_2_34_aarch64.whl CPython 3.15 CPython 3.15 Linux glibc 2.34+ ARM64 Details for caddysnake-0.7.1-cp315-cp315-manylinux_2_34_aarch64.whl
caddysnake-0.7.1-cp315-cp315-manylinux_2_31_riscv64.whl CPython 3.15 CPython 3.15 Linux glibc 2.31+ RISC-V 64 Details for caddysnake-0.7.1-cp315-cp315-manylinux_2_31_riscv64.whl
caddysnake-0.7.1-cp315-cp315-macosx_11_0_arm64.whl CPython 3.15 CPython 3.15 macOS 11.0+ ARM64 Details for caddysnake-0.7.1-cp315-cp315-macosx_11_0_arm64.whl
caddysnake-0.7.1-cp315-cp315-macosx_10_12_x86_64.whl CPython 3.15 CPython 3.15 macOS 10.12+ x86-64 Details for caddysnake-0.7.1-cp315-cp315-macosx_10_12_x86_64.whl
caddysnake-0.7.1-cp314-cp314-manylinux_2_34_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.34+ x86-64 Details for caddysnake-0.7.1-cp314-cp314-manylinux_2_34_x86_64.whl
caddysnake-0.7.1-cp314-cp314-manylinux_2_34_aarch64.whl CPython 3.14 CPython 3.14 Linux glibc 2.34+ ARM64 Details for caddysnake-0.7.1-cp314-cp314-manylinux_2_34_aarch64.whl
caddysnake-0.7.1-cp314-cp314-manylinux_2_31_riscv64.whl CPython 3.14 CPython 3.14 Linux glibc 2.31+ RISC-V 64 Details for caddysnake-0.7.1-cp314-cp314-manylinux_2_31_riscv64.whl
caddysnake-0.7.1-cp314-cp314-macosx_11_0_arm64.whl CPython 3.14 CPython 3.14 macOS 11.0+ ARM64 Details for caddysnake-0.7.1-cp314-cp314-macosx_11_0_arm64.whl
caddysnake-0.7.1-cp314-cp314-macosx_10_12_x86_64.whl CPython 3.14 CPython 3.14 macOS 10.12+ x86-64 Details for caddysnake-0.7.1-cp314-cp314-macosx_10_12_x86_64.whl
caddysnake-0.7.1-cp313-cp313-manylinux_2_34_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.34+ x86-64 Details for caddysnake-0.7.1-cp313-cp313-manylinux_2_34_x86_64.whl
caddysnake-0.7.1-cp313-cp313-manylinux_2_34_aarch64.whl CPython 3.13 CPython 3.13 Linux glibc 2.34+ ARM64 Details for caddysnake-0.7.1-cp313-cp313-manylinux_2_34_aarch64.whl
caddysnake-0.7.1-cp313-cp313-manylinux_2_31_riscv64.whl CPython 3.13 CPython 3.13 Linux glibc 2.31+ RISC-V 64 Details for caddysnake-0.7.1-cp313-cp313-manylinux_2_31_riscv64.whl
caddysnake-0.7.1-cp313-cp313-macosx_11_0_arm64.whl CPython 3.13 CPython 3.13 macOS 11.0+ ARM64 Details for caddysnake-0.7.1-cp313-cp313-macosx_11_0_arm64.whl
caddysnake-0.7.1-cp313-cp313-macosx_10_12_x86_64.whl CPython 3.13 CPython 3.13 macOS 10.12+ x86-64 Details for caddysnake-0.7.1-cp313-cp313-macosx_10_12_x86_64.whl

Total release size: 270.0 MB

Release files / caddysnake-0.7.1-cp315-cp315-manylinux_2_34_x86_64.whl

Download URL caddysnake-0.7.1-cp315-cp315-manylinux_2_34_x86_64.whl
Size 18.7 MB
Tags CPython 3.15 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
e1a319d6b48ff913f565ef96646918d8d98a1f9a6c0a47a2fada763dabdc8f80
BLAKE2b-256 checksum
How to use checksums
6b0b3a261f92eb0c44a817bc24bc60ca4ab492167cccbdc8072a30f5028d0344
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 Nov 26, 2026.

Transparency log

Release files / caddysnake-0.7.1-cp315-cp315-manylinux_2_34_aarch64.whl

Download URL caddysnake-0.7.1-cp315-cp315-manylinux_2_34_aarch64.whl
Size 17.0 MB
Tags CPython 3.15 Linux glibc 2.34+ ARM64
SHA-256 checksum
How to use checksums
d5cbf0c5c6d681db15888a1b2f141a180d3dc1ac552f0a5174d3ab4ae98a3bf6
BLAKE2b-256 checksum
How to use checksums
a1631af3e037d4cd0d15d09f44a1e1b2ba20baaa0dc16c6c34aa8a12f65f7a0b
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 Nov 26, 2026.

Transparency log

Release files / caddysnake-0.7.1-cp315-cp315-manylinux_2_31_riscv64.whl

Download URL caddysnake-0.7.1-cp315-cp315-manylinux_2_31_riscv64.whl
Size 17.6 MB
Tags CPython 3.15 Linux glibc 2.31+ RISC-V 64
SHA-256 checksum
How to use checksums
978db01fa03baae019447c73e22caa88585eefd11e59eb2cd27be6b1efbf29a9
BLAKE2b-256 checksum
How to use checksums
0d8b77a0ac6bcc05238ec1c28fffe63a072c83cc878ba2efd4f77cbe79f6b6de
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 Nov 26, 2026.

Transparency log

Release files / caddysnake-0.7.1-cp315-cp315-macosx_11_0_arm64.whl

Download URL caddysnake-0.7.1-cp315-cp315-macosx_11_0_arm64.whl
Size 17.8 MB
Tags CPython 3.15 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
e819864375b92dc9bbc788ff5027d5558f8dbe4f496d0d1a6ba6269369ca4908
BLAKE2b-256 checksum
How to use checksums
db9c32108a4b01dbfa9e216b25987e3e3011867f053fba16c6f60dc4695f5dcd
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 Nov 26, 2026.

Transparency log

Release files / caddysnake-0.7.1-cp315-cp315-macosx_10_12_x86_64.whl

Download URL caddysnake-0.7.1-cp315-cp315-macosx_10_12_x86_64.whl
Size 19.0 MB
Tags CPython 3.15 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
8355cf606dfa222b09a452ea6d69d20980d1e4f713668cebc728cc9385a804ae
BLAKE2b-256 checksum
How to use checksums
21570922ab6a8fd3068236849d3f5a3073441e638c1f11f199aeda2ddf889b7e
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 Nov 26, 2026.

Transparency log

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

Download URL caddysnake-0.7.1-cp314-cp314-manylinux_2_34_x86_64.whl
Size 18.7 MB
Tags CPython 3.14 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
e0856788634375a567d84f62f804752e8ca35af08b19cb6e746d8d253e3e333d
BLAKE2b-256 checksum
How to use checksums
21ffce3806ea37c0f4b49c94ece07608523d868e90c0c6339e956466c85d26c2
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 Nov 26, 2026.

Transparency log

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

Download URL caddysnake-0.7.1-cp314-cp314-manylinux_2_34_aarch64.whl
Size 17.0 MB
Tags CPython 3.14 Linux glibc 2.34+ ARM64
SHA-256 checksum
How to use checksums
32d8cf5ca63e2082ac6388a9bc6f3cee5092ed4ce1b3250af40373f58bfeced1
BLAKE2b-256 checksum
How to use checksums
8d44977d13c08973d1778834a48e5e494251841f6759ee2f4991133a036fda33
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 Nov 26, 2026.

Transparency log

Release files / caddysnake-0.7.1-cp314-cp314-manylinux_2_31_riscv64.whl

Download URL caddysnake-0.7.1-cp314-cp314-manylinux_2_31_riscv64.whl
Size 17.6 MB
Tags CPython 3.14 Linux glibc 2.31+ RISC-V 64
SHA-256 checksum
How to use checksums
e13af11748774c4d8fee53d683050c153443565b02f226a8c3dc6f70e3fc0bde
BLAKE2b-256 checksum
How to use checksums
c92064a77db5f8d0685dd5fa940f985773070708b210e237e1e42c3d63d4d0d5
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 Nov 26, 2026.

Transparency log

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

Download URL caddysnake-0.7.1-cp314-cp314-macosx_11_0_arm64.whl
Size 17.8 MB
Tags CPython 3.14 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
0e7c3b8a423a71c915a83d9c472fefc9d5d2fa2507bdeb3d4ce1068c8e7b2cb8
BLAKE2b-256 checksum
How to use checksums
d3a2b9f718e070eb7ba1fecbf763d0a787953e61b96c8e3686f398628520cf41
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 Nov 26, 2026.

Transparency log

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

Download URL caddysnake-0.7.1-cp314-cp314-macosx_10_12_x86_64.whl
Size 19.0 MB
Tags CPython 3.14 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
55285d1216092321f3f540e54ae7df8b7dd5a27665bcdfbe75d601c3a9fb311c
BLAKE2b-256 checksum
How to use checksums
82e584c992dff754bc4acb730830bdc6fb9142afb290d7076232d29147e40343
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 Nov 26, 2026.

Transparency log

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

Download URL caddysnake-0.7.1-cp313-cp313-manylinux_2_34_x86_64.whl
Size 18.7 MB
Tags CPython 3.13 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
80cfe89e5f82ac5a9b934e30898629949ec1cd2472498f35f8dd53dd6964c841
BLAKE2b-256 checksum
How to use checksums
ca6811f5c6a2147bfa9ab938371895204f09b5554f705067d392732345fdaf08
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 Nov 26, 2026.

Transparency log

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

Download URL caddysnake-0.7.1-cp313-cp313-manylinux_2_34_aarch64.whl
Size 17.0 MB
Tags CPython 3.13 Linux glibc 2.34+ ARM64
SHA-256 checksum
How to use checksums
4974007d30e8581524b1b79deb957563dad2bfe4934893045d0e46bcb2328e97
BLAKE2b-256 checksum
How to use checksums
71855bc94b4dc1d1c384e80f655af9dad7855f965f137462e3eeb89e33595624
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 Nov 26, 2026.

Transparency log

Release files / caddysnake-0.7.1-cp313-cp313-manylinux_2_31_riscv64.whl

Download URL caddysnake-0.7.1-cp313-cp313-manylinux_2_31_riscv64.whl
Size 17.6 MB
Tags CPython 3.13 Linux glibc 2.31+ RISC-V 64
SHA-256 checksum
How to use checksums
fe57157285d71ec3bb4121754d9638067c49d88c801066b13e62892d13aea23f
BLAKE2b-256 checksum
How to use checksums
c63b1041c5c6a48170f72996c409a784ea735cd4d39db32331a4799451962cdc
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 Nov 26, 2026.

Transparency log

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

Download URL caddysnake-0.7.1-cp313-cp313-macosx_11_0_arm64.whl
Size 17.8 MB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
13d582d0a4e1a7d9540ab9c2076bd3b4cc9f06ebdca80359e9e29c4f3b61ffde
BLAKE2b-256 checksum
How to use checksums
fb294d8be6988c70e46720b08ef7ac77d24f8307353e6a332d61bf61db430734
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 Nov 26, 2026.

Transparency log

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

Download URL caddysnake-0.7.1-cp313-cp313-macosx_10_12_x86_64.whl
Size 19.0 MB
Tags CPython 3.13 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
a2734a732117740178af8aeb409794a01c046293650b302129274e920b6f3478
BLAKE2b-256 checksum
How to use checksums
358d196c925d25a6a7fda2fdc17e20c8e7653fec8f72b671bef447df3dfec422
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 Nov 26, 2026.

Transparency log

Security for caddysnake 0.7.1

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.

Full provenance

All 15 files in this release have been uploaded with provenance metadata.

Select from 15 files

Attestation for caddysnake-0.7.1-cp315-cp315-manylinux_2_34_x86_64.whl

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 Nov 26, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.7.1 This release

15 release files Full provenance

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