PROUTES3(1)

πŸ“¦
version 2.0.2 Β· 5 versions
, in debian trixie, ubuntu resolute

πŸ’… 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)s would expect http_port=8080 to 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 the format key 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