Skip to content

API Reference parrot.sdd.techwiki.api

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot.sdd.techwiki.api

View source

API reference generator — static analysis via griffe, one Markdown page per module.

Class GriffeUnavailable

Raised when the optional static-analysis dependency is unavailable.

Attribute NATIVE_SKIP_KIND

Attribute NATIVE_SKIP_REASON

Class RenderedPage

One rendered API reference page.

Parameter Type Default Description
module str
section str
title str
body str

Fields:

Field Type Default Description
module str
section str
title str
body str

Alias TechwikiConfig

Re-exported from parrot.sdd.techwiki.config.TechwikiConfig.

Function generate

Generate API reference pages for every configured static package.

generate(cfg: TechwikiConfig, root: Path, *, release: str | None = None) -> tuple[list[RenderedPage], list[dict[str, str]]]

Parameter Type Default Description
cfg TechwikiConfig Techwiki configuration.
root Path Repository root.
release str | None None Optional source-link release tag.

Returns: tuple[list[RenderedPage], list[dict[str, str]]] — (pages, skipped) with parse/load failures represented in skipped.

Function is_public

Determine whether a griffe object should be rendered.

is_public(obj: 'griffe.Object') -> bool

Parameter Type Default Description
obj 'griffe.Object' Griffe member being considered.

Returns: bool — Whether the member is public under its containing module's rules.

Function load_packages

Statically load every configured root with griffe, one tree per distribution.

Each distribution's own src is the only search path for its roots. Loading the shared parrot namespace with every src at once does not work: the core parrot/__init__.py makes parrot a regular package, so griffe never merges the satellites' PEP 420 portions (store backends, provider clients, server handlers...). Loading each portion on its own and merging the pages by module name (see :func:generate) keeps every satellite module in the reference. A root that a distribution does not contain is skipped, so griffe is never allowed to fall back to an installed copy.

Inspection is disabled: griffe only visits .py / .pyi files, so a configured module is never imported. A compiled module without a source or stub is dropped by griffe and reported by :func:_native_modules instead.

load_packages(cfg: TechwikiConfig, root: Path) -> 'list[griffe.Module]'

Parameter Type Default Description
cfg TechwikiConfig Techwiki configuration.
root Path Repository root.

Returns: 'list[griffe.Module]' — The loaded root modules in configuration order.

Attribute logger

Function render_module

Render one module page, returning None when the module documents nothing.

A module with public members renders those members. A package with none of its own — a namespace whose public names are re-exported lazily (__getattr__) or simply live in its submodules — renders an index page listing its declared __all__ and its child module pages instead of disappearing, so re-exports elsewhere can link it.

render_module(mod: 'griffe.Module', *, template: 'jinja2.Template', source_url: str | None, release: str | None, root: Path | None = None, section: str = 'API Reference') -> RenderedPage | None

Parameter Type Default Description
mod 'griffe.Module' Statically loaded module.
template 'jinja2.Template' Jinja template for a module page.
source_url str | None Base URL for source links.
release str | None Release tag for source links.
root Path | None None Repository root used to build repository-relative source links.
section str 'API Reference' Wiki section the page belongs to (TechwikiConfig.reference_section).

Returns: RenderedPage | None — A rendered page, or None for a module with neither public members nor a child module page. The page title is the bare module name: it becomes part of the wiki page name, which must stay free of : and the other characters actions/upload-artifact rejects.

Function strict_failures

Return the skipped entries that fail --strict: every entry except native-module ones.

strict_failures(skipped: Sequence[Mapping[str, Any]]) -> list[Mapping[str, Any]]

Parameter Type Default Description
skipped Sequence[Mapping[str, Any]] Skipped-module entries as returned by :func:generate.

Returns: list[Mapping[str, Any]] — The entries whose kind is not "native", in input order.

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally