waitress-serve
Pure Python WSGI HTTP Server. More information: <https://docs.pylonsproject.org/projects/waitress/en/latest/runner.html>.
Install
- All systems
-
curl cmd.cat/waitress-serve.sh
- Debian
-
apt-get install python-waitress
- Ubuntu
-
apt-get install python-waitress
- Arch Linux
-
pacman -S python-waitress
- Kali Linux
-
apt-get install python-waitress
- Fedora
-
dnf install python3-waitress
- Windows (WSL2)
-
sudo apt-get update
sudo apt-get install python-waitress
- Raspbian
-
apt-get install python-waitress
- Dockerfile
- dockerfile.run/waitress-serve
Pure Python WSGI HTTP Server. More information: <https://docs.pylonsproject.org/projects/waitress/en/latest/runner.html>.
-
Run a Python web app:
waitress-serve import.path:wsgi_func
-
Listen on port 8080 on localhost:
waitress-serve --listen=localhost:8080 import.path:wsgi_func
-
Start waitress on a Unix socket:
waitress-serve --unix-socket=path/to/socket import.path:wsgi_func
-
Use 4 threads to process requests:
waitress-serve --threads=4 import.path:wsgifunc
-
Call a factory method that returns a WSGI object:
waitress-serve --call import.path.wsgi_factory
-
Set the URL scheme to HTTPS:
waitress-serve --url-scheme=https import.path:wsgi_func
© tl;dr; authors and contributors