PROUTES3(1)
π PROUTES3 β bestie edition
okay so this is the manual page for proutes3, which lives in section 1 (User Commands) of the manual. It's a Python 3 Pyramid command. Yes it's a real thing, yes it's actually useful, let's go π¦
β¨ NAME β¨
proutes3 β the Python 3 Pyramid command ποΈ
πΈ DESCRIPTION πΈ
so here's the vibe. the usage line is literally this:
usage: proutes3 [-h] [-g GLOB] [-f FORMAT] [config_uri] [config_vars ...]
What it does? It prints all the URL dispatch routes used by a Pyramid application, in the exact order they get evaluated. not a random order, not alphabetical, the order in which they are evaluated β which is the whole point, because order is destiny in routing, bestie π
Each route it shows you includes:
- the name of the route
- the pattern of the route
- the view callable that will be invoked when that route gets matched
This command takes one positional argument named config_uri. It specifies the PasteDeploy config file to use for the interactive shell. The format is inifile#name. If you leave the name off, main is assumed. Example:
proutes myapp.ini
periodt. that's the whole thing β¨
π positional arguments
config_uriβ the URI to the configuration file. that's it, that's the girl πconfig_varsβ variables required by the config file. for example,http_port=%(http_port)swould expecthttp_port=8080to be passed here. so you're basically feeding it the lil values it's craving π
π«Ά options
-h,--helpβ show this help message and exit. the classic. the icon π-g GLOB,--glob GLOBβ display routes matching a glob pattern. filter that route list down to just the ones you care about, slay β¨-f FORMAT,--format FORMATβ choose which columns to display. heads up though, this will override theformatkey in the[proutes]ini section. so the command line wins, no cap π
ngl, if you ever can't figure out why some route is or isn't matching, run this first. the order in which they are evaluated is right there in front of you, bestie π₯
and that's the page!! this was proutes3 version 2.0.2+dfsg-1, dated December 2024 β shoutout to whoever packaged it, you ate π mwah, go read your routes π
π¦ 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