cli._routes

Page actions AI-ready formats and sharing
Open LLM text
Share with AI
Ask Claude Ask ChatGPT Ask Gemini Ask Copilot

chirp routes— list registered routes.

Resolves an import string to a chirp App and prints all registered routes with method, path, QUERY media ranges, and handler info.

chirp routes— list registered routes.

Resolves an import string to a chirp App and prints all registered routes with method, path, QUERY media ranges, and handler info.

cli._routes

Name Type Default Description
type
qualified_name
element_type
description
source_file
line_number
is_autodoc
autodoc_element
_autodoc_template
_autodoc_url_path
_autodoc_page_type
title
doc_content_hash

Symbols on this page

run_routes
function
def run_routes(args: argparse.Namespace) -> None

List registered routes for a chirp app.

Resolvesargs.appto an App instance, freezes it, and prints a table of METHOD, PATH, QUERY MEDIA, and handler name.

Parameters

Name Type Default Description
args argparse.Namespace
collect_routes_result
function
def collect_routes_result(app_import: str) -> InspectionResult

Return the frozen route table as stable structured data.

Parameters

Name Type Default Description
app_import str
_format_route_table
function
def _format_route_table(rows: list[dict[str, Any]]) -> str

Format structured route rows using the established CLI table.

Parameters

Name Type Default Description
rows list[dict[str, Any]]

View source · /home/runner/work/chirp/chirp/site/../src/chirp/cli/_routes.py:1