Forrest logo
tool overview
On this page you find all important commands for the CLI tool waitress-serve. If the command you are looking for is missing please ask our AI.

waitress-serve

Waitress-serve is a command-line tool used to serve WSGI web applications.

It is a part of the Waitress library, which is a pure-Python WSGI server that aims to be reasonably fast and easy to use.

Waitress-serve is specifically designed for serving WSGI applications, which are web applications written using the Web Server Gateway Interface.

One key feature of Waitress-serve is its simplicity; it aims to provide a straightforward way to start serving a WSGI application without complex configuration.

It can be used to serve any WSGI-compliant web application, including those written in Python using frameworks like Flask, Django, Pyramid, and more.

Waitress-serve supports HTTP/1.0 and HTTP/1.1 protocols, as well as chunked encoding for streaming responses.

It is also capable of handling multiple simultaneous connections efficiently, making it suitable for production use.

Waitress-serve allows you to specify various settings, such as the hostname and port to listen on, the number of worker threads to use, and the maximum request header size allowed.

It logs detailed information about each request processed, including the request method, URL, status code, and response time.

Overall, Waitress-serve is a reliable and convenient tool for serving WSGI web applications, providing a hassle-free way to make your application accessible over HTTP.

List of commands for waitress-serve:

  • waitress-serve:tldr:189e9 waitress-serve: Set the URL scheme to HTTPS.
    $ waitress-serve --url-scheme=${https} ${import-path:wsgi_func}
    try on your machine
    explain this command
  • waitress-serve:tldr:764e5 waitress-serve: Call a factory method that returns a WSGI object.
    $ waitress-serve --call ${import-path-wsgi_factory}
    try on your machine
    explain this command
  • waitress-serve:tldr:7cbca waitress-serve: Use 4 threads to process requests.
    $ waitress-serve --threads=${4} ${import-path:wsgifunc}
    try on your machine
    explain this command
  • waitress-serve:tldr:c5394 waitress-serve: Run a Python web app.
    $ waitress-serve ${import-path:wsgi_func}
    try on your machine
    explain this command
  • waitress-serve:tldr:dd79d waitress-serve: Listen on port 8080 on localhost.
    $ waitress-serve --listen=${localhost}:${8080} ${import-path:wsgi_func}
    try on your machine
    explain this command
  • waitress-serve:tldr:faa19 waitress-serve: Start waitress on a Unix socket.
    $ waitress-serve --unix-socket=${path-to-socket} ${import-path:wsgi_func}
    try on your machine
    explain this command
tool overview