Python WSGI/ASGI server powered by Caddy
Project description
caddysnake CLI
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:
- Quickstart — get started in 5 minutes
- Installation & Distribution — PyPI, standalone binaries, Docker, and more
- Configuration Reference — all Caddyfile directives
- Examples — Flask, Django, FastAPI, Socket.IO, dynamic modules, autoreload
- Architecture — how it works under the hood
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file caddysnake-0.5.1-cp314-cp314-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: caddysnake-0.5.1-cp314-cp314-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 17.4 MB
- Tags: CPython 3.14, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fc87a72b06488dcb93d29993b75983a102dc1fa882b954d64ec8808069f07cf1
|
|
| MD5 |
bf15e723f5b401f34483d50f3d9eb9fe
|
|
| BLAKE2b-256 |
f1d4110b5c39890ed9835b5ee84a99682fc3beca385c9b49743212d1ba1861c5
|
Provenance
The following attestation bundles were made for caddysnake-0.5.1-cp314-cp314-manylinux_2_34_x86_64.whl:
Publisher:
python-build.yml on mliezun/caddy-snake
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
caddysnake-0.5.1-cp314-cp314-manylinux_2_34_x86_64.whl -
Subject digest:
fc87a72b06488dcb93d29993b75983a102dc1fa882b954d64ec8808069f07cf1 - Sigstore transparency entry: 1558292217
- Sigstore integration time:
-
Permalink:
mliezun/caddy-snake@c81e1bf83fbc9bdd560571ae4e496a8db49e67a5 -
Branch / Tag:
refs/tags/v0.5.1 - Owner: https://github.com/mliezun
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-build.yml@c81e1bf83fbc9bdd560571ae4e496a8db49e67a5 -
Trigger Event:
push
-
Statement type:
File details
Details for the file caddysnake-0.5.1-cp314-cp314-manylinux_2_34_aarch64.whl.
File metadata
- Download URL: caddysnake-0.5.1-cp314-cp314-manylinux_2_34_aarch64.whl
- Upload date:
- Size: 15.9 MB
- Tags: CPython 3.14, manylinux: glibc 2.34+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3af0fe21cfe58dc672b508a4e78593882799fba4b353250104ad6ccd4d6ed2ef
|
|
| MD5 |
92857bdd9fd95f9af44468e153a30273
|
|
| BLAKE2b-256 |
1f9ac6749072ba663c83f46c245749c17e4725b52ab6ec1f65f63e5dd2fdf0ff
|
Provenance
The following attestation bundles were made for caddysnake-0.5.1-cp314-cp314-manylinux_2_34_aarch64.whl:
Publisher:
python-build.yml on mliezun/caddy-snake
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
caddysnake-0.5.1-cp314-cp314-manylinux_2_34_aarch64.whl -
Subject digest:
3af0fe21cfe58dc672b508a4e78593882799fba4b353250104ad6ccd4d6ed2ef - Sigstore transparency entry: 1558291997
- Sigstore integration time:
-
Permalink:
mliezun/caddy-snake@c81e1bf83fbc9bdd560571ae4e496a8db49e67a5 -
Branch / Tag:
refs/tags/v0.5.1 - Owner: https://github.com/mliezun
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-build.yml@c81e1bf83fbc9bdd560571ae4e496a8db49e67a5 -
Trigger Event:
push
-
Statement type:
File details
Details for the file caddysnake-0.5.1-cp313-cp313-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: caddysnake-0.5.1-cp313-cp313-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 17.4 MB
- Tags: CPython 3.13, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ec6fd14810dfaa04b52febcbcb548529f3dc0799c8619cd793aa6fd442daf856
|
|
| MD5 |
103ff173e9a0bf4ec869082c981cbca6
|
|
| BLAKE2b-256 |
c4bf0b47b3c4a77b9165d9150b6ddf1fd258dcbd047bf77c9d5f8e3d733f75a2
|
Provenance
The following attestation bundles were made for caddysnake-0.5.1-cp313-cp313-manylinux_2_34_x86_64.whl:
Publisher:
python-build.yml on mliezun/caddy-snake
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
caddysnake-0.5.1-cp313-cp313-manylinux_2_34_x86_64.whl -
Subject digest:
ec6fd14810dfaa04b52febcbcb548529f3dc0799c8619cd793aa6fd442daf856 - Sigstore transparency entry: 1558292679
- Sigstore integration time:
-
Permalink:
mliezun/caddy-snake@c81e1bf83fbc9bdd560571ae4e496a8db49e67a5 -
Branch / Tag:
refs/tags/v0.5.1 - Owner: https://github.com/mliezun
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-build.yml@c81e1bf83fbc9bdd560571ae4e496a8db49e67a5 -
Trigger Event:
push
-
Statement type:
File details
Details for the file caddysnake-0.5.1-cp313-cp313-manylinux_2_34_aarch64.whl.
File metadata
- Download URL: caddysnake-0.5.1-cp313-cp313-manylinux_2_34_aarch64.whl
- Upload date:
- Size: 15.9 MB
- Tags: CPython 3.13, manylinux: glibc 2.34+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9552e98c328a68314496baf66b6445e980978360954a42fe314fa02708f23b7b
|
|
| MD5 |
6f6cd439c3a658d98ef61c06e7b43349
|
|
| BLAKE2b-256 |
b56a4f645d35a27197437c726d189d0f7e501e26bd9489622f77520ed811ee92
|
Provenance
The following attestation bundles were made for caddysnake-0.5.1-cp313-cp313-manylinux_2_34_aarch64.whl:
Publisher:
python-build.yml on mliezun/caddy-snake
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
caddysnake-0.5.1-cp313-cp313-manylinux_2_34_aarch64.whl -
Subject digest:
9552e98c328a68314496baf66b6445e980978360954a42fe314fa02708f23b7b - Sigstore transparency entry: 1558291517
- Sigstore integration time:
-
Permalink:
mliezun/caddy-snake@c81e1bf83fbc9bdd560571ae4e496a8db49e67a5 -
Branch / Tag:
refs/tags/v0.5.1 - Owner: https://github.com/mliezun
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-build.yml@c81e1bf83fbc9bdd560571ae4e496a8db49e67a5 -
Trigger Event:
push
-
Statement type:
File details
Details for the file caddysnake-0.5.1-cp312-cp312-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: caddysnake-0.5.1-cp312-cp312-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 17.4 MB
- Tags: CPython 3.12, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f7073e78aa0f28dd5e49781bf9576650d58d17845b43170381e5c949b515b850
|
|
| MD5 |
567d21e2c6d87abea294fad6d46c0dcb
|
|
| BLAKE2b-256 |
fdf58fe7658c251502444c75e24b3cd5eaaa3b3feae4c3ffe21dad0e54a7c19e
|
Provenance
The following attestation bundles were made for caddysnake-0.5.1-cp312-cp312-manylinux_2_34_x86_64.whl:
Publisher:
python-build.yml on mliezun/caddy-snake
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
caddysnake-0.5.1-cp312-cp312-manylinux_2_34_x86_64.whl -
Subject digest:
f7073e78aa0f28dd5e49781bf9576650d58d17845b43170381e5c949b515b850 - Sigstore transparency entry: 1558291722
- Sigstore integration time:
-
Permalink:
mliezun/caddy-snake@c81e1bf83fbc9bdd560571ae4e496a8db49e67a5 -
Branch / Tag:
refs/tags/v0.5.1 - Owner: https://github.com/mliezun
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-build.yml@c81e1bf83fbc9bdd560571ae4e496a8db49e67a5 -
Trigger Event:
push
-
Statement type:
File details
Details for the file caddysnake-0.5.1-cp312-cp312-manylinux_2_34_aarch64.whl.
File metadata
- Download URL: caddysnake-0.5.1-cp312-cp312-manylinux_2_34_aarch64.whl
- Upload date:
- Size: 15.9 MB
- Tags: CPython 3.12, manylinux: glibc 2.34+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0180b67a5b9fef9192da961691049b1ebb4e3229596c2b9be8279f22a0776880
|
|
| MD5 |
0c717555a55d470ed056c9c04b20a338
|
|
| BLAKE2b-256 |
881d9651ca7a633e9e5ccc36343149195a3d51c8ad3c077b6fea3073a7abffac
|
Provenance
The following attestation bundles were made for caddysnake-0.5.1-cp312-cp312-manylinux_2_34_aarch64.whl:
Publisher:
python-build.yml on mliezun/caddy-snake
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
caddysnake-0.5.1-cp312-cp312-manylinux_2_34_aarch64.whl -
Subject digest:
0180b67a5b9fef9192da961691049b1ebb4e3229596c2b9be8279f22a0776880 - Sigstore transparency entry: 1558292401
- Sigstore integration time:
-
Permalink:
mliezun/caddy-snake@c81e1bf83fbc9bdd560571ae4e496a8db49e67a5 -
Branch / Tag:
refs/tags/v0.5.1 - Owner: https://github.com/mliezun
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-build.yml@c81e1bf83fbc9bdd560571ae4e496a8db49e67a5 -
Trigger Event:
push
-
Statement type: