Skip to main content

Python WSGI/ASGI server powered by Caddy

Project description

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.12 through 3.14 on Linux (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

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

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:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

caddysnake-0.4.0-cp314-cp314-manylinux_2_34_x86_64.whl (17.2 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.34+ x86-64

caddysnake-0.4.0-cp314-cp314-manylinux_2_34_aarch64.whl (15.7 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.34+ ARM64

caddysnake-0.4.0-cp313-cp313-manylinux_2_34_x86_64.whl (17.2 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ x86-64

caddysnake-0.4.0-cp313-cp313-manylinux_2_34_aarch64.whl (15.7 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ ARM64

caddysnake-0.4.0-cp312-cp312-manylinux_2_34_x86_64.whl (17.2 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

caddysnake-0.4.0-cp312-cp312-manylinux_2_34_aarch64.whl (15.7 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ ARM64

File details

Details for the file caddysnake-0.4.0-cp314-cp314-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for caddysnake-0.4.0-cp314-cp314-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 863af66438a67dca568abdeb599dca9bbc85a1d911b2e0b481d4f50f6d905a25
MD5 583608ce6d3521414aa33141a2940e4b
BLAKE2b-256 5752fdc91aeb52269c04d18eb24fbb341b63c4783362594116fe26e7763d5f18

See more details on using hashes here.

File details

Details for the file caddysnake-0.4.0-cp314-cp314-manylinux_2_34_aarch64.whl.

File metadata

File hashes

Hashes for caddysnake-0.4.0-cp314-cp314-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 62e4e66f933a76067f987f600ba4db16657958a163b2844d53757c83880d3f5a
MD5 c2e1b25428f2e2f6e35179861498a32d
BLAKE2b-256 3454a2583fdcb0cb5810c26cb4dcecdc1b8aeed2150014505d17608a15250dd3

See more details on using hashes here.

File details

Details for the file caddysnake-0.4.0-cp313-cp313-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for caddysnake-0.4.0-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 9fe47fe7e8636e4750ad1a404dba1e6e478095822d2bc6321df9541005012618
MD5 d380787b084fc999c0a67e8b0ecf7c9b
BLAKE2b-256 8cfcd5bed3c0c92211bf75aafac00891958ccd245a73d936d158549b3f0a1ed9

See more details on using hashes here.

File details

Details for the file caddysnake-0.4.0-cp313-cp313-manylinux_2_34_aarch64.whl.

File metadata

File hashes

Hashes for caddysnake-0.4.0-cp313-cp313-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 a7c89edbf960c26a82dbfccdfbeed60bb1bf3d2b596f7164111efd94e73d824d
MD5 72e6a0b8ea1ca427e127d7f133044a6a
BLAKE2b-256 70eedcc85d374dee392f27baf83dfb310225ffdc03d5c3d4c095f4811d775632

See more details on using hashes here.

File details

Details for the file caddysnake-0.4.0-cp312-cp312-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for caddysnake-0.4.0-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 df7a3caf1f297e070eae7b77b2c5de816ec239d5cf35e2c35f4ea9c0e72c4352
MD5 55f4f301819db235bba2143e3af4fdeb
BLAKE2b-256 ec194a0baa4e4ff7c6762134fefab231d4ad3edb41cc6f81e0bf8410ff6e651d

See more details on using hashes here.

File details

Details for the file caddysnake-0.4.0-cp312-cp312-manylinux_2_34_aarch64.whl.

File metadata

File hashes

Hashes for caddysnake-0.4.0-cp312-cp312-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 c6e2e597ab0af1fc263098b3f27d1225630bfe5f04d112a881149a47b843a0e2
MD5 0c3ff0abd2837c511802463f1ea54ef9
BLAKE2b-256 e05954e2042573e41f38553decbe257b198bf753e58684803a40936cfb42b9b5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page