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

Uploaded CPython 3.14manylinux: glibc 2.34+ ARM64

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

Uploaded CPython 3.13manylinux: glibc 2.34+ ARM64

caddysnake-0.4.1-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.1-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.1-cp314-cp314-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for caddysnake-0.4.1-cp314-cp314-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 a87ab0263721238369f2154bef622c5c7b751acc6008bb3190d6b643e98d3f19
MD5 97784e5f1117682b62838ebf67cc08a6
BLAKE2b-256 19f294b42097976a64050b0e31c0af6cebaecbb354ee94cad8e0a1e3c84facbb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for caddysnake-0.4.1-cp314-cp314-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 73f9a4cbea4d15ace61ad3ec58e6ab786f2796b72414ade00f8933c6fec5dfe3
MD5 5f40647d7a3fe511bf2df10611dae1c0
BLAKE2b-256 4c783082b973a9b488cfbab7299e0b52903605d6b95c3e68c4c013fa5ac69ccc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for caddysnake-0.4.1-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 550a20a5f3bf68feca8b642a92bba4c1cd823aa5f6f19aca3a576711e0f34717
MD5 26ac30b7e006f12db7d0228adaa6d215
BLAKE2b-256 3cc893e06fae2b31274b86024ae5eba12361f71223426ce514c18c7f76d5d6ac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for caddysnake-0.4.1-cp313-cp313-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 b37cf5a3f22d1eb0d176c51132b8f128eb4b02ab33cfcdfdce825e3c8058b6f5
MD5 973d613686a62135eff3788e0864126e
BLAKE2b-256 89538556bbae27407dea151ff40538fa42997c170db88b8ae868d8b806f001a6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for caddysnake-0.4.1-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 a21cf113014125f820fe1a6bd8d60101902bcb30aacb7bdc6a09c11a85ae2905
MD5 4776ee89a431a78dd760a941f263d5bd
BLAKE2b-256 8d63ccf4d080c6d2056431e4b88e41a6bd59d2cd6a515f5309dc7d1eb1b507a2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for caddysnake-0.4.1-cp312-cp312-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 d145bdf180a3bf667c1f183394be34a607cb0610601b4d6801f681bea09a5763
MD5 9c7ac6ac149c6216a2261840e34c0c2e
BLAKE2b-256 21d8eabc221a6268f9939f4860ae31e05bd388cc44d645a1fd60e03166d38f5c

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