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 and macOS (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.8-cp314-cp314-manylinux_2_34_x86_64.whl (17.5 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.34+ x86-64

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

Uploaded CPython 3.14manylinux: glibc 2.34+ ARM64

caddysnake-0.5.8-cp314-cp314-macosx_11_0_arm64.whl (16.7 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

caddysnake-0.5.8-cp314-cp314-macosx_10_12_x86_64.whl (17.9 MB view details)

Uploaded CPython 3.14macOS 10.12+ x86-64

caddysnake-0.5.8-cp313-cp313-manylinux_2_34_x86_64.whl (17.5 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ x86-64

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

Uploaded CPython 3.13manylinux: glibc 2.34+ ARM64

caddysnake-0.5.8-cp313-cp313-macosx_11_0_arm64.whl (16.7 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

caddysnake-0.5.8-cp313-cp313-macosx_10_12_x86_64.whl (17.9 MB view details)

Uploaded CPython 3.13macOS 10.12+ x86-64

caddysnake-0.5.8-cp312-cp312-manylinux_2_34_x86_64.whl (17.5 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

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

Uploaded CPython 3.12manylinux: glibc 2.34+ ARM64

caddysnake-0.5.8-cp312-cp312-macosx_11_0_arm64.whl (16.7 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

caddysnake-0.5.8-cp312-cp312-macosx_10_12_x86_64.whl (17.9 MB view details)

Uploaded CPython 3.12macOS 10.12+ x86-64

File details

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

File metadata

File hashes

Hashes for caddysnake-0.5.8-cp314-cp314-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 6089b38ae89ba96df276e7e1c5951e10fad13ff5a96c2ae94d88c6b1132151db
MD5 645acde4ecf94aceedca51b7efb1ca55
BLAKE2b-256 f9edd09af097d46656781110239918344ef93f87d1e9cfb3109d29701d175a30

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for caddysnake-0.5.8-cp314-cp314-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 d0839877fffc6ed2d545b90d2806f6d52d49fc701adcd3f9408c96a8dbc64024
MD5 65227f28cdb160009271486aa7dc4326
BLAKE2b-256 fee7716421c20a1f57818c6ad25f668f43ba8c1e8ac50429f5c25c2bcef449e3

See more details on using hashes here.

Provenance

The following attestation bundles were made for caddysnake-0.5.8-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.8-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for caddysnake-0.5.8-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 82ebf705ea6879ef7b4b53ff3b899993d7fe61e73bebaae948256c2a4da6037f
MD5 c1fe21e42d04ad6c72c0ea6419a43f0c
BLAKE2b-256 58dc43fc7b8ce1e1d1315eb4b5e02d9fb46b96b3fccd3bf26bfdab1266741182

See more details on using hashes here.

Provenance

The following attestation bundles were made for caddysnake-0.5.8-cp314-cp314-macosx_11_0_arm64.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.8-cp314-cp314-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for caddysnake-0.5.8-cp314-cp314-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 1e477c43f2617115ba39247c95bb39fec6be2e4dfd670daf9ad28545c3e93890
MD5 359c37a0e8ce9bfeb426da48b55cc362
BLAKE2b-256 f97a1fb9b1d67d71183610c270263243c713e2c07e6a81de4fb2ae638386da47

See more details on using hashes here.

Provenance

The following attestation bundles were made for caddysnake-0.5.8-cp314-cp314-macosx_10_12_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.8-cp313-cp313-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for caddysnake-0.5.8-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 ae8634a65028aa50cb4e460c20d5efce6eede0a5fbac64388363467774f7d2db
MD5 699a069428bee46a6eca996bd6e5c132
BLAKE2b-256 71d129c1106735e8b0bd64a05f83a5ae38ac5c521aec4c1fa9a181bbd9609d32

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for caddysnake-0.5.8-cp313-cp313-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 f869973be5d20eb4e672a6800e35dba4b58e80eda89f40e47b9ac1fc234a26bd
MD5 1b9bf87e2809d6052965bd196b649f35
BLAKE2b-256 07d6bb2746507e822148c891f50e42486ba596cbf5b05d68ff57010401bd36a3

See more details on using hashes here.

Provenance

The following attestation bundles were made for caddysnake-0.5.8-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.8-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for caddysnake-0.5.8-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 342060ab76765541f7ac9b5f05805ca949216cb56800528cb7af280c9436fe04
MD5 b945bf898bc21f2f5d02087a00b0114f
BLAKE2b-256 d5f7e266ad4a336218197d0ef4a780d5bd3d3703e47297af701b44923dfb81da

See more details on using hashes here.

Provenance

The following attestation bundles were made for caddysnake-0.5.8-cp313-cp313-macosx_11_0_arm64.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.8-cp313-cp313-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for caddysnake-0.5.8-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 7e306c2a5c14ce14f349bc527df67ab56f5eb9667fadb9487e540b9bf1a92afa
MD5 7a2ae40138ac9ba2bc94d8be45b26590
BLAKE2b-256 cae360402f20a64e040a3aeb5e956044d44dbe13091b4608e0dddd2e3f97501a

See more details on using hashes here.

Provenance

The following attestation bundles were made for caddysnake-0.5.8-cp313-cp313-macosx_10_12_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.8-cp312-cp312-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for caddysnake-0.5.8-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 69940b45b773682f6b587ca9adc35b1aa747b86adb6808ec0fab680bf1055be9
MD5 5ae651dfb6366055ae1251464e4605a7
BLAKE2b-256 d2bc6d21a26fdad6785ab8fc0ca7bfd66d1f60742643af6b9da028fbb65b7728

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for caddysnake-0.5.8-cp312-cp312-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 71d46ed79839e7a70ac9220437a542ade02b585c723df01f5eb588b9cbb82148
MD5 68cfa3df0853f0da920d6718acc5297f
BLAKE2b-256 10f2b833b0b58dd2450bf73329576a9212f0cffc223ccc541feae3efabeaf4ae

See more details on using hashes here.

Provenance

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

File details

Details for the file caddysnake-0.5.8-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for caddysnake-0.5.8-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 19667aca518719cdff13db72b68cfd5cac384fbee3cc5d49e87de6c324c1af6a
MD5 cd67f16812d2c058af85f2e0c650abfb
BLAKE2b-256 e19ddd3533a20380d362ac799fcb570d628d1a311094c82d5f1885b3228a8fb2

See more details on using hashes here.

Provenance

The following attestation bundles were made for caddysnake-0.5.8-cp312-cp312-macosx_11_0_arm64.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.8-cp312-cp312-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for caddysnake-0.5.8-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 897cd262af4e0f1500f7eceeafa8a314617510aa88704c054ac335da4092c943
MD5 dd5eb08cf1ce43676ce238efbc0b2490
BLAKE2b-256 70e31fe7f888e22a6f30eda0e1e1ffd12e74f2b402ea906eee091212ee75b570

See more details on using hashes here.

Provenance

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

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