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

Uploaded CPython 3.14manylinux: glibc 2.34+ ARM64

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

Uploaded CPython 3.14macOS 11.0+ ARM64

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

Uploaded CPython 3.14macOS 10.12+ x86-64

caddysnake-0.5.10-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.10-cp313-cp313-manylinux_2_34_aarch64.whl (15.9 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ ARM64

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

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.13macOS 10.12+ x86-64

caddysnake-0.5.10-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.10-cp312-cp312-manylinux_2_34_aarch64.whl (15.9 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ ARM64

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

Uploaded CPython 3.12macOS 11.0+ ARM64

caddysnake-0.5.10-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.10-cp314-cp314-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for caddysnake-0.5.10-cp314-cp314-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 164f84d7d7913fff19cd82988aa3b3ae33223c6982a9a36e3660c3ce97282669
MD5 df9507e2f9f3fd1fd0984b6811dbd30b
BLAKE2b-256 ebac046e31ed0e26d80ec022027229909c9d147d3ede15606105af5e0106a86b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for caddysnake-0.5.10-cp314-cp314-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 15f6667999c19675ae286fc0ee36777c0ec136658897c9f1c7453ce5d680ba7c
MD5 cc36f87eb71b53cfc62eb5a124bdca2d
BLAKE2b-256 c8c8d780cb9cb74ab386bce6652cd13a746bbd6d9638478e382b3eaab7288544

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for caddysnake-0.5.10-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 04009455c463d218472af80a057f734fcf95a2e04da588d66c821cd43f50ac79
MD5 53530f9d1000445803d3f71ff525f75a
BLAKE2b-256 d638c43a20fa8a50f2d5d92606258f0886bcdae7b93aa26a242a16995c441628

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for caddysnake-0.5.10-cp314-cp314-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 aa6706729b6b76cb6c94a589e06d6e62f49e18aafffb6832b4164cfd270db438
MD5 0bcfea365030304b5e98fb6445aa5bba
BLAKE2b-256 981a9125e55754f38abec9fabf12b88820e1cc04cddc0814386c0b5c0d075e8b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for caddysnake-0.5.10-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 3dcd0ca93c80e45d2d61aa71164b0437f3bb9623a43e531a230188a250bbea3f
MD5 df8f101e75c8d730f4f4778e329ef1ce
BLAKE2b-256 898f331cbd101126a84b1c7dac1cb75b9b9f09bfe50a633703bb201cde990d0b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for caddysnake-0.5.10-cp313-cp313-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 88d25b437ff8b3fdc31d253264e1f8e5870c950c1ff123cf91e5edf5c441af04
MD5 db760343b66b6f3a3a236a6cb32ac6db
BLAKE2b-256 d21f6b9429dd78096048f9302a1c8a2308b98e955087a6ff251e6315907f4772

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for caddysnake-0.5.10-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3b40f13160bec894a6d5a5f4f96c6f55472a792c73866e0391d8641c81a0d9c1
MD5 c3ff41d75a389d332caac9d22655a22f
BLAKE2b-256 c9c6805217a13c03738c8c65587c6b4a61d88d37d9e431c584ca97261182f389

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for caddysnake-0.5.10-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 ec2b3fef247253c51cfbfd86b71ea7334149caa7e12485bdccba0bd37b2ea8f7
MD5 5726b77a88c92f64d696354017836692
BLAKE2b-256 97dc8b640fdcc3ea54a4eaf4eba8df13916b5f69c3e621cf217e85bdc935cbca

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for caddysnake-0.5.10-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 563d3b486290931adab8482abeb32e68caca7b14ec6bca1571cd935399bd1689
MD5 326a96955c5857ea583df2d4c4069bb1
BLAKE2b-256 05374c9ddbc38bfc55c485e25a8c1852c4682d4d25a3b7b5d82842327bb98843

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for caddysnake-0.5.10-cp312-cp312-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 6148dfcd4d6c41c55cb349cae24907d5b0c84dda54845acd7fbd28af5878eda7
MD5 769123491088d0f6ab2f6aa5d5ccad3f
BLAKE2b-256 e0b0080a361b5a0ef55b0ab7f23d17f3c564c986c6308abc692953bd7fdc604b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for caddysnake-0.5.10-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 21c1d1d62d6cb19f897dd002896c5eee9c1031383c3574a130dcb8acef4ac328
MD5 bd527399f928f0ea8fdb16634b535ae1
BLAKE2b-256 a58c3dabfcae2ad15fdd65b11754e9681ffd8607d30b4645aa08778d92821c8b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for caddysnake-0.5.10-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 2f1696bab0a8fd602d5f3048088f231fc6d37dd2b4ec375a3fa9bfe955f29954
MD5 717d0bdcd2cacf31994792fa18ae8360
BLAKE2b-256 aa5344b5d368788ad06deb71c470a35d7ac0893a776434d38033c4113640ca16

See more details on using hashes here.

Provenance

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