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

Uploaded CPython 3.14manylinux: glibc 2.34+ ARM64

caddysnake-0.4.2a0-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.2a0-cp313-cp313-manylinux_2_34_aarch64.whl (15.7 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ ARM64

caddysnake-0.4.2a0-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.2a0-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.2a0-cp314-cp314-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for caddysnake-0.4.2a0-cp314-cp314-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 a5d078cb163aa52d94824c7e9f037e93a603cd171614f7b5a9433153a524e67f
MD5 10bab4ad0a4bc70055bf97705f457a48
BLAKE2b-256 85444b6c5f4b709911608341ec6cee69654a3b95b87665cbadb000c2bd20b9e4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for caddysnake-0.4.2a0-cp314-cp314-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 566916ace931235ff5218f5d1cbbc102e55a1aeec75a00bc22eaf085ffbc3e4a
MD5 24e6cd6d9915ea6c211109c402ec5fca
BLAKE2b-256 420d884671c5e13fe2d73f9142a2cbeac9a607684eee65202a64592ff467aa47

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for caddysnake-0.4.2a0-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 e19daf747519e45449c5a3c2551ccbbdd4fd8d0fa7c2732d534a67acf8d758a7
MD5 c84b1affdc729cbd3d8fed073103d91f
BLAKE2b-256 c217fe94a0079f456f8ce5a0776e48e60ffffb1da0601982288a93739308b734

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for caddysnake-0.4.2a0-cp313-cp313-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 b3df9ba3f880dc425e83876c1e95a03c5664da4d526e7f398db6b389f8aa96dc
MD5 daea97ef18753da00c5aafd6d6bfd3d0
BLAKE2b-256 a3816a5fa9504fabc6b328cb854b2a13748242b5a64ff530c6f1b56972a8776f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for caddysnake-0.4.2a0-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 5bc4b7ddc327b8f786a1e9b6bde1f940c103cf0d8e4cfbaa3bed662688a3b5eb
MD5 ce8b6ca40b7accd092c81bebfeb52bd2
BLAKE2b-256 2088571df10103804506c4a404ecccffe63af2ebb47215d28465ecb250714d74

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for caddysnake-0.4.2a0-cp312-cp312-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 182bf9e230f45b22124b426d0653fd003375c024167ab10c05d35183a7f2a523
MD5 893c1064e7aeffc109461a4a1b151bd9
BLAKE2b-256 851303f68b93f093c084f45d23e286f7a3bc65d3f4557fa5eb160cd6bd934c2a

See more details on using hashes here.

Provenance

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