AIOWSGI-SERVE(1)
β¨ NAME β¨
aiowsgi-serve is a minimalist WSGI server that uses async π¦ It's filed under User Commands, obviously π
aiowsgi-serve β minimalist WSGI server using async π
π DESCRIPTION π
okay so this is how you call it, bestie π
aiowsgi-serve [OPTS] MODULE:OBJECT
π Standard options π
--helpβ pulls up this whole info dump again π--callβ calls the given object to get the WSGI application β¨--host=ADDRβ the hostname or IP address to listen on πΈ The default is'0.0.0.0', which means "all IP addresses on this host" π- β οΈ Note: may not be used together with
--listenπ ββοΈ
- β οΈ Note: may not be used together with
--port=PORTβ the TCP port to listen on π The default is'8080'- β οΈ Note: may not be used together with
--listenπ ββοΈ
- β οΈ Note: may not be used together with
--listen=ip:portβ tells waitress to listen on an ip + port combo π¦ Here's the vibe:
--listen=127.0.0.1:8080 --listen=[::1]:8080 --listen=*:8080
This option can be used multiple times to listen on multiple sockets, iconic π A wildcard for the hostname is supported too, and it'll bind to both IPv4 and IPv6 depending on whether they're enabled or disabled.
--[no-]ipv4β toggles IPv4 support on or off π· Like, here's how you turn it off:
--no-ipv4
This disables IPv4 socket support. It also affects wildcard matching when generating the list of sockets.
--[no-]ipv6β toggles IPv6 support on or off π§ Here's how you turn it on:
--no-ipv6
This turns on IPv6 socket support. It also affects wildcard matching when generating a list of sockets.
--unix-socket=PATHβ the path of a Unix socket π If you specify a socket path, a Unix domain socket gets made instead of the usual inet domain socket.- > π Not available on Windows, sorry bestie.
--unix-socket-perms=PERMSβ octal permissions for the Unix domain socket π The default is'600'.--url-scheme=STRβ the defaultwsgi.url_schemevalue π The default is'http'.--url-prefix=STRβ this sets theSCRIPT_NAMEWSGI environment value π« Setting it to anything except the empty string makes the WSGISCRIPT_NAMEvalue the value you passed, minus any trailing slashes you add. It also strips that prefix off thePATH_INFOof any request that starts with it. The default is the empty string.--ident=STRβ the server identity used in the'Server'header in responses π The default is'waitress'.
π₯ Tuning options π₯
--threads=INTβ the number of threads used to process application logic π§΅ The default is4.--backlog=INTβ the connection backlog for the server π₯ The default is1024.--recv-bytes=INTβ how many bytes to request when callingsocket.recv()π¦ The default is8192.--send-bytes=INTβ how many bytes to send tosocket.send()π€ The default is18000. Multiples of9000should avoid partly-filled TCP packets, which is giving efficiency π--outbuf-overflow=INTβ a temporary file gets created if the pending output is larger than this ποΈ The default is1048576(1MB).--inbuf-overflow=INTβ a temporary file gets created if the pending input is larger than this ποΈ The default is524288(512KB).--connection-limit=INTβ stops creating new channels if too many are already active π¦ The default is100.--cleanup-interval=INTβ the minimum number of seconds between cleaning up inactive channels π§Ή The default is30. See'--channel-timeout'.--channel-timeout=INTβ the maximum number of seconds to leave inactive connections open β³ The default is120. "Inactive" is defined as "has received no data from the client and has sent no data to the client" π«₯--[no-]log-socket-errorsβ toggles whether premature client disconnect tracebacks get logged πͺ΅ It's on by default.--max-request-header-size=INTβ the maximum size of all request headers combined π The default is262144(256KB).--max-request-body-size=INTβ the maximum size of a request body π± The default is1073741824(1GB).--[no-]expose-tracebacksβ toggles whether tracebacks of unhandled exceptions get exposed to the client π It's off by default.--asyncore-loop-timeout=INTβ the timeout value in seconds passed toasyncore.loop()β±οΈ The default is1.--asyncore-use-pollβ theuse_pollargument passed toasyncore.loop()π¦ It helps overcome the open file descriptors limit. The default isFalse.
π LICENSE π
MIT πΈ
π AUTHOR π
Gael Pasgrimaud π
π¦ aiowsgi-serve 0.7 Β· November 2018 Β· love you, bestie π
π¦ where this page comes from
- ubuntu jammy: python3-aiowsgi 0.7-2 Β· MIT
- π girlified by claude-haiku-5-5 on : a language model's rewrite of the original, under its terms