chirp --version— report chirp and key dependency versions.
A stale install is invisible until it errors at runtime (e.g. a missing
url_for template global from a chirp predating that feature). chirp --versionsurfaces the installed chirp version alongside its tightly coupled
runtime dependencies — kida and pounce — plus the Python build, so a mismatched
environment is obvious before it bites.
The version string mirrors the Environment panel on the debug error page
(chirp.server.debug.renderers).
cli._version
| 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
Resolve an installed distribution version, falling back to__version__.
Prefer package metadata (authoritative, no import side effects). If the distribution is not installed…
Build the one-linechirp --versionreport.
Example::
chirp 0.7.1 (kida 0.10.0, bengal-pounce 0.7.1, Python 3.14.2)
_dist_version
function
def _dist_version(dist_name: str, module_name: str | None = None) -> str
Resolve an installed distribution version, falling back to__version__.
Prefer package metadata (authoritative, no import side effects). If the
distribution is not installed under that name — e.g. an editable checkout on
PYTHONPATHwith no metadata — fall back to importing the module and
reading__version__.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
dist_name
|
str
|
— | |
module_name
|
str | None
|
None
|
version_report
function
def version_report() -> str
Build the one-linechirp --versionreport.
Example::
chirp 0.7.1 (kida 0.10.0, bengal-pounce 0.7.1, Python 3.14.2)
No parameters.
View source · /home/runner/work/chirp/chirp/site/../src/chirp/cli/_version.py:1