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.0

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

Total release size: 270.0 MB

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

Download URL caddysnake-0.7.0-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
9ddf42dd63a7341e17bc3c94489be10ab5af32a0b02f2c04879e376fb5964e4b
BLAKE2b-256 checksum
How to use checksums
94c0266664d29afc1e01f3ad610cdfcbcecf976ca89dfdb04eb75d0bfbb11621
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 10, 2026.

Transparency log

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

Download URL caddysnake-0.7.0-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
71c38dddf019f367be327f278f7db8caac2b8c5442df05c07d41841eef77b3ac
BLAKE2b-256 checksum
How to use checksums
b693d4b895796f00cfe9542496b07fef372d412d200d6ca3ff1c13ed10364ce2
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 10, 2026.

Transparency log

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

Download URL caddysnake-0.7.0-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
948415e2792942ae74080eece5c244dfe208d6a26560d50e364832ace84be7e8
BLAKE2b-256 checksum
How to use checksums
76d6c74a18f7b345cd5313f9e9addef16e68a5e11389347348d9a055e2ce64a6
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 10, 2026.

Transparency log

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

Download URL caddysnake-0.7.0-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
e76ff48483ec7b198e102ca89f147ffea782798dea3daee2f48fc324f4d1dd62
BLAKE2b-256 checksum
How to use checksums
b2617422f66d057c9b584f6b2b64d07672dca9eedd4d9a8cf3ce36d2962f245f
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 10, 2026.

Transparency log

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

Download URL caddysnake-0.7.0-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
daecab6a9dcf7c03b08d77bc1cfb2505715f944ec04ffe556424a63493a11a59
BLAKE2b-256 checksum
How to use checksums
e0cd3a4b4c33921e46f4c6ee731261e8617341ee979d09d07135b8427f5e76a5
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 10, 2026.

Transparency log

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

Download URL caddysnake-0.7.0-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
c351056c15ab47dce8911174f74b676ca5f379e4bf3d47657d0a7ed5aa77aa7e
BLAKE2b-256 checksum
How to use checksums
e9a36450f9d7f9ce54ccce919fa1524d68522898b3d8fa81646783d77db81552
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 10, 2026.

Transparency log

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

Download URL caddysnake-0.7.0-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
e873e817d9f8df2f59a9254311630e7771faeeb80c991b26435e5292c0bf8bfc
BLAKE2b-256 checksum
How to use checksums
fd606e74cc1a45c05f2a8c8276a319515cb263f7a292c54d9b6127de7e9f9679
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 10, 2026.

Transparency log

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

Download URL caddysnake-0.7.0-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
664fc52830a718f0b70c305e9b5f312a95984bcd6c2e31cc04f8ea991e9f31fc
BLAKE2b-256 checksum
How to use checksums
9f5e4de7bacc3fc763173eed216bcfc8313e4739e2c5eee2785c4c2b1d45375a
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 10, 2026.

Transparency log

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

Download URL caddysnake-0.7.0-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
3207234c3631b640bc3f8bcfdf73947dc08df7746145d55e4d43a687b7a55652
BLAKE2b-256 checksum
How to use checksums
a674159ed05d7741b1874cbb13ba9e9bbb98f0230df1749cfba26e1e5b268726
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 10, 2026.

Transparency log

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

Download URL caddysnake-0.7.0-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
a7336144e7a00245472b86dc0482f7dae6fd37032ee23f9a4682a1e4812f9517
BLAKE2b-256 checksum
How to use checksums
1ed7fee725a73e6863c418e0df4851ae7d47694fea6f18b1808fcee718288aa4
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 10, 2026.

Transparency log

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

Download URL caddysnake-0.7.0-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
f4733ad5dedbe8d703661606b55c8af447e2bb0f76de242d0aad40d8ebdf03b6
BLAKE2b-256 checksum
How to use checksums
c2ea7b540b59b36055afee03a1bcee5689399f45b6e2001fe6c19dfce34f6a6e
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 10, 2026.

Transparency log

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

Download URL caddysnake-0.7.0-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
0b2553aea391e1c87182d17c8840c261ddbc948c0286b01e6c18b2e6d9576cf8
BLAKE2b-256 checksum
How to use checksums
51fff9523f4b9e2fe7e6d22e392685415bc3a596ef0c73462c9fe632dbbc99ba
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 10, 2026.

Transparency log

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

Download URL caddysnake-0.7.0-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
158b05c03069f40f0c3e6da3cdee85238d4ef23982a49d130beb9a02a9e1a1b5
BLAKE2b-256 checksum
How to use checksums
b6bb57b9de95f3d73c5293de848aa5151210e2f6ec3c88cad3cfc893ce36df4e
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 10, 2026.

Transparency log

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

Download URL caddysnake-0.7.0-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
3cdd45ae6f370127ae1de4e0407d82f5af485ffe15c56a9a1c5e8b66381f9310
BLAKE2b-256 checksum
How to use checksums
ea46adf2788c16e8b03b5a13c0583a1275ae9024e2793ea5c42b03e215d82c69
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 10, 2026.

Transparency log

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

Download URL caddysnake-0.7.0-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
197d02f748e2a067d4fbe3b24ce34ae28896f81f37877f5d8916bab184da92f3
BLAKE2b-256 checksum
How to use checksums
5c244b242a463ec6d7bf71787d02574a59ce75bcf6342e88722566f9ddb17f7e
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 10, 2026.

Transparency log

Security for caddysnake 0.7.0

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.0-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 10, 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.0 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