cli._resolve

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

App import resolution — resolves"module:attribute"strings to App instances.

Shared utility used bychirp run and chirp checkto locate a chirp App from a user-supplied import string.

App import resolution — resolves"module:attribute"strings to App instances.

Shared utility used bychirp run and chirp checkto locate a chirp App from a user-supplied import string.

cli._resolve

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_app
function
def resolve_app(import_string: str) -> App

Resolve an import string to a chirp App instance.

Accepts"module:attribute"format. When the attribute portion is omitted, defaults to"app" (e.g. "myapp"resolves to myapp.app).

Supports factory functions: if the resolved object is callable and not an App instance, it will be called (assuming it's an app factory).

Parameters

Name Type Default Description
import_string str Dotted module path with optional ``:attribute`` suffix (e.g. ``"myapp:app"``, ``"myapp.main:application"``, ``"myapp:create_app"``).

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