PSERVE3(1)
π PSERVE3 π
okay so welcome to the pserve3 page bestie, it's the Python 3 Pyramid command and she's literally the moment. this is from the User Commands manual, so you know it's official. let's get into it π¦
πΈ NAME πΈ
pserve3 β the Python 3 Pyramid command. that's her. that's the whole name. iconic of her honestly π
β¨ DESCRIPTION β¨
okay so first thing, here's how you actually call her, no cap:
usage: pserve3 [-h] [-n NAME] [-s SERVER_TYPE] [--server-name SECTION_NAME]
[--reload] [--reload-interval RELOAD_INTERVAL] [-b] [-v] [-q]
[config_uri] [config_vars ...]
so basically this command serves a web application that uses a PasteDeploy configuration file for the server and the application. like, both of them. it's giving full service, main character energy π
and here's the cute lil trick β you can also include variable assignments like http_port=8080 and then use %(http_port)s in your config files. yes bestie, that's the whole vibe, you drop the value on the command line and reference it in the file. it's giving β¨templatingβ¨
π«Ά positional arguments
config_uriβ the URI to the configuration file. that's your config, that's the thing, that's what she needs πconfig_varsβ variables required by the config file. for example,http_port=%(http_port)swould expecthttp_port=8080to be passed here. so like, the config file is asking for a thing and you're the one supplying it. teamwork fr fr π€
π§ options
-h,--helpβ show this help message and exit. the classic. the universal "wait what do i do" button π-n NAME,--app-name NAMEβ load the named application. and heads up, the default ismainπ-s SERVER_TYPE,--server SERVER_TYPEβ use the named server. pick your fighter, choose your server type π--server-name SECTION_NAMEβ use the named server as defined in the configuration file. default here ismaintoo, so if you don't say anything she's gonna assumemainπ--reloadβ use the auto-restart file monitor. she watches your files and restarts herself when they change. lowkey the most useful flag on this whole page honestly π₯--reload-interval RELOAD_INTERVALβ seconds between checking files. but bestie listen, a low number can cause significant CPU usage β οΈ so don't set it to like, zero, she WILL chug your processor π-b,--browserβ open a web browser to the server url. and where does she get that url from, you ask? theopen_urlsetting in thepservesection of the configuration file. so it's all coming from your config, she's not out here guessing π-v,--verboseβ set verbose level. default is1, so she's already talking a normal amount π£οΈ-q,--quietβ suppress verbose output. for when you want her to be chill and not yap. the silence is giving peace π
π reminder that --reload-interval with a tiny number = CPU going feral. keep it reasonable, bestie, your fans will thank you.
pserve3 2.0.2+dfsg-1 β December 2024 π that's the version and the date babes, so if anyone asks, that's the era this page is from. now go serve that web app, you've got this, periodt πβ¨
π¦ where this page comes from
- debian trixie: python3-pyramid 2.0.2+dfsg-1 Β· Pyramid
- ubuntu resolute: python3-pyramid 2.0.2+dfsg-1 Β· Pyramid
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms