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.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.5.0-cp314-cp314-manylinux_2_34_aarch64.whl (15.7 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.34+ ARM64

caddysnake-0.5.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.5.0-cp313-cp313-manylinux_2_34_aarch64.whl (15.7 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ ARM64

caddysnake-0.5.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.5.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.5.0-cp314-cp314-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for caddysnake-0.5.0-cp314-cp314-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 a509c664e164f9e05f57a188cba777eb5b478e9f9b55d754c69bb55f44494cd0
MD5 f043dd4c09987e9f0b71bc93bc486c83
BLAKE2b-256 e539ae4ca12b8a58cad8b98656a5b427543bd46188bb1587d1576f0f5938e725

See more details on using hashes here.

Provenance

The following attestation bundles were made for caddysnake-0.5.0-cp314-cp314-manylinux_2_34_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.0-cp314-cp314-manylinux_2_34_aarch64.whl.

File metadata

File hashes

Hashes for caddysnake-0.5.0-cp314-cp314-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 e8e740fd0e0b383fc141cd204281633cc5f53142b223a4d70878605963e8d4d4
MD5 341d2a46bbbd48576124a7484dde1f3c
BLAKE2b-256 6aaa6845f15e59b8db6a630ca71ff2b89e4f298d418edddf67eee67a29f5ede1

See more details on using hashes here.

Provenance

The following attestation bundles were made for caddysnake-0.5.0-cp314-cp314-manylinux_2_34_aarch64.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.0-cp313-cp313-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for caddysnake-0.5.0-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 87c41b41d23adc4c6870360e6700b6e092a1ba395e9b7eb3d6ba2ea85f2dd1fb
MD5 bb6b040d63dc0c67d704f84c7e8f42d3
BLAKE2b-256 4185560fc1451ef9806f7cc632e9248b58ab2abeaed6454e2eba26f0cba59043

See more details on using hashes here.

Provenance

The following attestation bundles were made for caddysnake-0.5.0-cp313-cp313-manylinux_2_34_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.0-cp313-cp313-manylinux_2_34_aarch64.whl.

File metadata

File hashes

Hashes for caddysnake-0.5.0-cp313-cp313-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 3259dae515dc92e193f538146694590be3596d2ecb781ea1afae00a239b1c393
MD5 b37b56bfcec50ee20fd75ead3b7821c6
BLAKE2b-256 aa148d5a5f972f0d02e5d2d7b4a1c749022ae1a1e6bfa83f96e8815fd081d5cb

See more details on using hashes here.

Provenance

The following attestation bundles were made for caddysnake-0.5.0-cp313-cp313-manylinux_2_34_aarch64.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.0-cp312-cp312-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for caddysnake-0.5.0-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 c9cda6ae8c73aca8e82667e8a9f3696e6c8dc49c2474141ee01ddb5526d15567
MD5 6fe7e4807a916adec350492b3745cde5
BLAKE2b-256 9dd1d3884e92776254281dc732891fd77e45f4fe24ad83b0cbd9401521b98439

See more details on using hashes here.

Provenance

The following attestation bundles were made for caddysnake-0.5.0-cp312-cp312-manylinux_2_34_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.0-cp312-cp312-manylinux_2_34_aarch64.whl.

File metadata

File hashes

Hashes for caddysnake-0.5.0-cp312-cp312-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 671c5ddf66c7ec2a7c2f712ef144e5ec17dbd7f76c96f5599167c7b3687b1832
MD5 3bc26a514db63a0f7219b853e5cd2ec3
BLAKE2b-256 5c4cf4dab122568f0f5823f38c551ba177fd42a553aa595b3356fe7097492670

See more details on using hashes here.

Provenance

The following attestation bundles were made for caddysnake-0.5.0-cp312-cp312-manylinux_2_34_aarch64.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