Module

cli._resolve

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.

Functions

resolve_app 1 App
Resolve an import string to a chirp App instance. Accepts ``"module:attribute"…
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).

Parameters
Name Type Description
import_string str

Dotted module path with optional:attribute suffix (e.g. "myapp:app", "myapp.main:application").

Returns
App