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.5.4-cp314-cp314-macosx_10_12_x86_64.whl (17.9 MB view details)

Uploaded CPython 3.14macOS 10.12+ x86-64

caddysnake-0.5.4-cp313-cp313-macosx_10_12_x86_64.whl (17.9 MB view details)

Uploaded CPython 3.13macOS 10.12+ x86-64

caddysnake-0.5.4-cp312-cp312-macosx_10_12_x86_64.whl (17.9 MB view details)

Uploaded CPython 3.12macOS 10.12+ x86-64

File details

Details for the file caddysnake-0.5.4-cp314-cp314-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for caddysnake-0.5.4-cp314-cp314-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 9cb7510a5acf5b655d5925d4626b4d37439a4e5fe909fab8758501be66f5c529
MD5 30bfb062ebbc8e37302c7a7f7bef1978
BLAKE2b-256 8eb56818c0c95473b0ec081708cc562e25947af95c2f973fa7ab0413e0990e28

See more details on using hashes here.

Provenance

The following attestation bundles were made for caddysnake-0.5.4-cp314-cp314-macosx_10_12_x86_64.whl:

Publisher: python-build.yml on mliezun/caddy-snake

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file caddysnake-0.5.4-cp313-cp313-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for caddysnake-0.5.4-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 7da8625869e6f09c0bd2c25fa85177d7b717777f31f14ca393311156b363dc76
MD5 3f032441ce686e3c4c93737402d062a8
BLAKE2b-256 edb842b796cd408897d1c9308c7771f41d496596d2730a52698ec6d33f7a6954

See more details on using hashes here.

Provenance

The following attestation bundles were made for caddysnake-0.5.4-cp313-cp313-macosx_10_12_x86_64.whl:

Publisher: python-build.yml on mliezun/caddy-snake

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file caddysnake-0.5.4-cp312-cp312-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for caddysnake-0.5.4-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 b9cb4a73a7acd178e485078588a1a3067b71cf290f5a6e56bc514661914b5c37
MD5 eefac12066651374a8a93cee6f139d26
BLAKE2b-256 ae9a415e47b9d7406947a285acf887585e41050262e71dc566a7f1287d392468

See more details on using hashes here.

Provenance

The following attestation bundles were made for caddysnake-0.5.4-cp312-cp312-macosx_10_12_x86_64.whl:

Publisher: python-build.yml on mliezun/caddy-snake

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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