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.10 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
--workers-runtime -r Worker type: process or thread process
--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.3.0-cp314-cp314-manylinux_2_34_x86_64.whl (16.3 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.34+ x86-64

caddysnake-0.3.0-cp314-cp314-manylinux_2_34_aarch64.whl (14.9 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.34+ ARM64

caddysnake-0.3.0-cp313-cp313-manylinux_2_34_x86_64.whl (16.3 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ x86-64

caddysnake-0.3.0-cp313-cp313-manylinux_2_34_aarch64.whl (14.9 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ ARM64

caddysnake-0.3.0-cp312-cp312-manylinux_2_34_x86_64.whl (16.3 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

caddysnake-0.3.0-cp312-cp312-manylinux_2_34_aarch64.whl (14.9 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ ARM64

caddysnake-0.3.0-cp311-cp311-manylinux_2_34_x86_64.whl (16.3 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.34+ x86-64

caddysnake-0.3.0-cp311-cp311-manylinux_2_34_aarch64.whl (14.9 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.34+ ARM64

caddysnake-0.3.0-cp310-cp310-manylinux_2_34_x86_64.whl (16.3 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.34+ x86-64

caddysnake-0.3.0-cp310-cp310-manylinux_2_34_aarch64.whl (14.9 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.34+ ARM64

File details

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

File metadata

File hashes

Hashes for caddysnake-0.3.0-cp314-cp314-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 4c4bda31eb685e1874269b0c2b0f1359e767a1927c933edbd0f87f98d8a632c0
MD5 dbc325000994494f279b7e7b4a14da14
BLAKE2b-256 7995f6f5a671c6ed045220209278db8a64dd57253c00793b5f004489d59f2ac8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for caddysnake-0.3.0-cp314-cp314-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 e2e38e1dcac134cb9e5fbf506097a8defb5e4610238cbcf69b65c4589b1d081b
MD5 117f9cae1cdf2deb10a0717e0467da42
BLAKE2b-256 91a07c4ed9287f41fd6fda3213e57c5f205017794e6121531eaa46e61d252baf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for caddysnake-0.3.0-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 021bb98a3c99447b2231d165107d75100454bd1854b37712275512c2bc700539
MD5 9e6f832554f109136fe09262c8dcae61
BLAKE2b-256 c2735765b30b627543ed70d9a722016f544e0bfcc3d35063cb03685679b97e92

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for caddysnake-0.3.0-cp313-cp313-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 94427178f6ffd9d1a21957680fd9cb2b5e7ef4bb28f47df066f224e57dff6b0c
MD5 b24515880e844cce47b8c8c5487761be
BLAKE2b-256 f02280de3dc9b418e3fbea5ca9ead1da0b69f7111c1b2145581a9226a26e62f6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for caddysnake-0.3.0-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 fbc7dc099c8bc7e1ee579ef15d6c8e3ac0866e405e3f842ab62a64281df81d2b
MD5 b89d23c7f02e3431b1103d1299273357
BLAKE2b-256 5d676d7058d3beab49b88b25901ea98d2e06c23d10905291a6b701888720f78f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for caddysnake-0.3.0-cp312-cp312-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 f69a7ddf0d78699b44fff05672f5576f28e34b57fa16e5ccb9a3a62bd6a5d974
MD5 7d6b8159c3a6a40bcb15a3455a6a4c45
BLAKE2b-256 133b87e4dca7e8cce640c6a2a4e699ad86508999ba61c2752afc5345d30cdf34

See more details on using hashes here.

File details

Details for the file caddysnake-0.3.0-cp311-cp311-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for caddysnake-0.3.0-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 ff3df2f7d2ee6f69dfd7424c08f594c281ff037f8d44ada71e5838edb1493c85
MD5 f424aa3d1847b8a4ec10109291075597
BLAKE2b-256 5b0153e733b5e377920742a8fb9ba3c46c6f1a2a8368ee4bccb3bec327113718

See more details on using hashes here.

File details

Details for the file caddysnake-0.3.0-cp311-cp311-manylinux_2_34_aarch64.whl.

File metadata

File hashes

Hashes for caddysnake-0.3.0-cp311-cp311-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 1581b283fc9c2b44d19e2733244c3da85157c4f7c13e049dabf1a9b12a69b3dc
MD5 4ed42a51f6f2509abc9e64b744917e99
BLAKE2b-256 a77a4ff11c11076206d85bbcd3626e147583845fd22ad8e1727ca77637422d14

See more details on using hashes here.

File details

Details for the file caddysnake-0.3.0-cp310-cp310-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for caddysnake-0.3.0-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 b356ab9f3065d273d2abb3b12ca17fc9ef7f68309f9480953fd9fa5035f91756
MD5 dc759f186b92c022778eb51c3a63d283
BLAKE2b-256 097e4dc82934dd625fed9f23e6e42b35c61043a214c9a1c699239e430b4217d6

See more details on using hashes here.

File details

Details for the file caddysnake-0.3.0-cp310-cp310-manylinux_2_34_aarch64.whl.

File metadata

File hashes

Hashes for caddysnake-0.3.0-cp310-cp310-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 c62b851a3551beb2d6660a61014a085f447c56c075581b9029ad1ac2e6e1dfd9
MD5 8a382301ea528368ab041c6714ac01fb
BLAKE2b-256 e86b23124b6b4acc1301cf8732b56859b456ab873ac99961859f0ab4f308ab49

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