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.1-cp314-cp314-manylinux_2_34_x86_64.whl (17.4 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.34+ x86-64

caddysnake-0.5.1-cp314-cp314-manylinux_2_34_aarch64.whl (15.9 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.34+ ARM64

caddysnake-0.5.1-cp313-cp313-manylinux_2_34_x86_64.whl (17.4 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ x86-64

caddysnake-0.5.1-cp313-cp313-manylinux_2_34_aarch64.whl (15.9 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ ARM64

caddysnake-0.5.1-cp312-cp312-manylinux_2_34_x86_64.whl (17.4 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

caddysnake-0.5.1-cp312-cp312-manylinux_2_34_aarch64.whl (15.9 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ ARM64

File details

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

File metadata

File hashes

Hashes for caddysnake-0.5.1-cp314-cp314-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 fc87a72b06488dcb93d29993b75983a102dc1fa882b954d64ec8808069f07cf1
MD5 bf15e723f5b401f34483d50f3d9eb9fe
BLAKE2b-256 f1d4110b5c39890ed9835b5ee84a99682fc3beca385c9b49743212d1ba1861c5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for caddysnake-0.5.1-cp314-cp314-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 3af0fe21cfe58dc672b508a4e78593882799fba4b353250104ad6ccd4d6ed2ef
MD5 92857bdd9fd95f9af44468e153a30273
BLAKE2b-256 1f9ac6749072ba663c83f46c245749c17e4725b52ab6ec1f65f63e5dd2fdf0ff

See more details on using hashes here.

Provenance

The following attestation bundles were made for caddysnake-0.5.1-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.1-cp313-cp313-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for caddysnake-0.5.1-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 ec6fd14810dfaa04b52febcbcb548529f3dc0799c8619cd793aa6fd442daf856
MD5 103ff173e9a0bf4ec869082c981cbca6
BLAKE2b-256 c4bf0b47b3c4a77b9165d9150b6ddf1fd258dcbd047bf77c9d5f8e3d733f75a2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for caddysnake-0.5.1-cp313-cp313-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 9552e98c328a68314496baf66b6445e980978360954a42fe314fa02708f23b7b
MD5 6f6cd439c3a658d98ef61c06e7b43349
BLAKE2b-256 b56a4f645d35a27197437c726d189d0f7e501e26bd9489622f77520ed811ee92

See more details on using hashes here.

Provenance

The following attestation bundles were made for caddysnake-0.5.1-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.1-cp312-cp312-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for caddysnake-0.5.1-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 f7073e78aa0f28dd5e49781bf9576650d58d17845b43170381e5c949b515b850
MD5 567d21e2c6d87abea294fad6d46c0dcb
BLAKE2b-256 fdf58fe7658c251502444c75e24b3cd5eaaa3b3feae4c3ffe21dad0e54a7c19e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for caddysnake-0.5.1-cp312-cp312-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 0180b67a5b9fef9192da961691049b1ebb4e3229596c2b9be8279f22a0776880
MD5 0c717555a55d470ed056c9c04b20a338
BLAKE2b-256 881d9651ca7a633e9e5ccc36343149195a3d51c8ad3c077b6fea3073a7abffac

See more details on using hashes here.

Provenance

The following attestation bundles were made for caddysnake-0.5.1-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