Chirp API Reference

Browse Python API documentation by package.

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

Package Index

18 modules · search with ⌘K

autodoc-python sources

Shared source protocols and types.

A source is anything that produces typed data — a database, an LLM, a file watcher, a message queue. Sources have two modes:…

Open reference
autodoc-python telemetry

Best-effort OpenTelemetry spans for Chirp internals.

Chirp has no hard dependency onopentelemetry— OTel is configured through Pounce viaAppConfig.otel_endpoint. These helpers no-op when the SDK…

Open reference
autodoc-python plugin

Plugin protocol — structural typing for reusable Chirp plugins.

A plugin is any object with aregister(app, prefix)method. No base class required.

Usage (plugin author)::

class BlogPlugin:…
Open reference
autodoc-python extraction

Typed extraction of query parameters and form/JSON body data.

Automatically populates frozen dataclass instances from request data, converting string values to the annotated field types. Used by the…

Open reference
autodoc-python errors

Chirp exception hierarchy.

Shared across Router, App, handler, and middleware so every module raises and catches the same types.

Open reference
autodoc-python resilience

Resilience patterns for external dependencies.

Documents recommended patterns for timeouts, retries, and circuit breakers when calling external services. Chirp does not bundle a circuit breaker; usetenacityor…

Open reference
autodoc-python logging

Structured logging with request correlation.

Provides request_id propagation via ContextVar and a structured_log helper for JSON-formatted logs with request_id, user_id, path, etc.

WhenAppConfig.log_format == "json"the framework…

Open reference
autodoc-python chirp

Chirp — A Python web framework for the modern web platform.

Serves HTML beautifully: full pages, fragments, streams, and real-time events. Built for Python 3.14t with free-threading support.…

Open reference
autodoc-python shell_actions

Shell action constants — shared by pages and templating without circular deps.

For all documented shell region element ids (including this target), see chirp.shell_regions.

Open reference
autodoc-python live_blocks

Live-block declarations for hybrid static/dynamic freeze output.

A live blockis a named template block on a frozen page that is swapped out at freeze time for an…

Open reference
autodoc-python config

Application configuration.

AppConfig is a frozen dataclass — immutable after creation, IDE-autocompletable, no string-key dict lookups.

Open reference
autodoc-python webmcp

Experimental declarative WebMCP form projection.

This module implements only the attribute vocabulary from the WebMCP declarative proposal pinned by RFC 014. It does not register imperative browser tools…

Open reference
autodoc-python context

Request-scoped context via ContextVar.

Provides:

  • request_var: The current Requestfor this task/thread.
  • g: A mutable namespace scoped to the current request.

Both are set by the…

Open reference
autodoc-python domains

Domain protocol for pluggable feature modules.

Domains register routes, middleware, and other app extensions on first access.

Open reference
autodoc-python shell_regions

Stable DOM ids for Chirp shell regions (HTMX OOB targets).

Shell regions live outside#page-content. They are updated via hx-swap-oobduring fragment navigations, not by the primary …

Open reference
autodoc-python health

Health probes for Kubernetes and load balancers.

Provides liveness and readiness endpoints for container orchestration.

Chirp auto-mounts/health (liveness) and /ready(readiness) at the paths inAppConfig(…

Open reference
autodoc-python freeze

Freeze — render routes to static HTML files.

Walks the app's route table after freeze, renders each freezable URL through the full ASGI middleware stack via TestClient, and…

Open reference
autodoc-python section-index

Browse Python API documentation by package.

Open reference