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

Uploaded CPython 3.14manylinux: glibc 2.34+ ARM64

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

Uploaded CPython 3.14macOS 11.0+ ARM64

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

Uploaded CPython 3.14macOS 10.12+ x86-64

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

Uploaded CPython 3.13manylinux: glibc 2.34+ ARM64

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

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.13macOS 10.12+ x86-64

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

Uploaded CPython 3.12manylinux: glibc 2.34+ ARM64

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

Uploaded CPython 3.12macOS 11.0+ ARM64

caddysnake-0.5.9-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.9-cp314-cp314-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for caddysnake-0.5.9-cp314-cp314-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 12f7f73e52d958ac81011f3e47835f88ac41a282459b6fccf3720ce32065d952
MD5 8f2a8cc38d1b6e04cff8472e2dbfd9bb
BLAKE2b-256 db2533e6b8d2e7296972267101f259d7cf3a5242fc5faf099ee1dbb2daa500a2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for caddysnake-0.5.9-cp314-cp314-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 25f763dc5119b29c8866ddc1733b0d9c8ecba37b22f8d9711e43d617685a4f02
MD5 2e7cd79045106cae61973d17d30c750a
BLAKE2b-256 3404518ea38c1ba587e5e6a90316b34d4c80391b539401fd6d8e91341e06f70d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for caddysnake-0.5.9-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 18994fa40fa8ea8357beffb4293b1e3820b9d2ae0eae19a0ed1795252d9ed63c
MD5 51cf67887865321d6dc9240cd23ca4c4
BLAKE2b-256 b492b2202da20673d053459c2f2ad529b740b0dcd4fe0231959c6a94008df1da

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for caddysnake-0.5.9-cp314-cp314-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 7165483e2ccb24395bf791aea10e51bac73d679145cccf2bc5a16f825f6530c9
MD5 b8b951f7ff87382faf329c7e28cee2ee
BLAKE2b-256 bccc1c6325397332500b118961497e24c495a647e1c9476cf291a4c1a02fd1e5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for caddysnake-0.5.9-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 31a219c7071a13cdc5f23aee53b0118cbb8c853d8b85ac4d4489e04c93bb90af
MD5 f58f14de553864085e9eeae6145993bf
BLAKE2b-256 dd42ff969e85686a740fb1723211ab8fc2239b842e8c97825ceaad609170593f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for caddysnake-0.5.9-cp313-cp313-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 c2cc22c8fbc75241040ee0f9a185e9b4793f3272882e11b0e477ed5f12dd9d90
MD5 7ad97b5ba388a24964c9a9ab962faaf3
BLAKE2b-256 a49b05a177b5f2e7b6da3f0d424d035510206d22dcc3bc46ef5fb28be10c6aa7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for caddysnake-0.5.9-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2870aec983d736869e2008f8bc612c7a2a21497f027b82afa96e0c49d2c84ed9
MD5 4b73183c8a9fe2e8ac5e3cf8776f932b
BLAKE2b-256 0db8a4b1fa340ade157958c48ccce6fec2519cab179193d4bf8a5df217116472

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for caddysnake-0.5.9-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 d024940983271f5654f669f534b2ee8392e0d9b1dbf6e7152dfc284be182e9d9
MD5 3b3cd7691164a83eb5ec3d7a710dcaa7
BLAKE2b-256 824765db10a9f474fdf0de36113c5163efa29b8105044f7150a98764b7461907

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for caddysnake-0.5.9-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 ae90a9447027e7cc14d1ca58ba8ea246535fd64c37b8c222fc67901c8ba38be9
MD5 a0e6595c43eb89675aff831c23eece2e
BLAKE2b-256 a9f19bd022b7346f40e076d560d02d2d1fdc6616026e5160a55d4a3e685fa488

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for caddysnake-0.5.9-cp312-cp312-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 0296b050e35a4db1eec64489178386c29c0cee3a007b706d2cb017b6f8ca9b56
MD5 47cf39884baf039538e5a5cba365f24c
BLAKE2b-256 2c881e75f2e1f7b4652f54494cc5d96494ad707897407a3c2f30857236c0a9e6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for caddysnake-0.5.9-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ae1419fcf5a0d1f31138e42c84ecbd7cb87e9b4702e63f0b9f0c5a602beb0bab
MD5 649b19453c0a4d5691719e73119cb08d
BLAKE2b-256 84418c44bd531336c61e3d0b3b499eafdada0261e08ecbc60dfe5bb9d16557b7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for caddysnake-0.5.9-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 21f30fa60f121977d52f44f34957481278b49ce23d11eb07f1e47b7e938cbf99
MD5 d6bf178cee123e249e52c16269c2f2af
BLAKE2b-256 f5b743154bb636424f2a25c85959d2786d82b17894a8d1fc5e065252f325520f

See more details on using hashes here.

Provenance

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