pyflightstream.overview (stable)¶
Generated from the docstrings at build time: every one of the 3 names in the __all__ of pyflightstream.overview has an entry below. The names a guide or an example uses come first; the others follow under Advanced.
Architecture overview rendered from the live module docstrings.
Pipeline role: presentation layer sitting above every subpackage;
nothing imports it back. This module is the single rendering source for
both delivery layers of the architecture overview:
pyflightstream.overview() renders a self-contained HTML page and
opens it in the default browser (layer 1, the offline fallback), and
:func:markdown_overview feeds the docs site at build time (layer 2,
the published docs). Both layers read the same source: the actual top
docstrings of the package and its subpackages, imported at call time,
so the overview can never drift from the code it describes.
This is the LibraryHelp companion of the CommandHelp in
:mod:pyflightstream.reference: help() answers "which commands
exist and with what evidence", overview() answers "how the package
is put together and where to start".
the grouped run modes (run --polar-sweep and run --batch) and
the read-only query ledger (status, show, log, trace, history,
diff) live inside the run and workspace rows below; they add no row
and keep the rule that the workspace never imports the run.
The workspace record models live in workspace/manifest.py; matrix layout
and reference-point helpers live in workspace/_layout.py. The root retains
CampaignWorkspace, its registries and public re-exports. Matrix binding is
orchestrated by workspace/matrix.py over _matrix_binding.py and
_matrix_phases.py; the cases reader uses cases/_matrix_layouts.py and
cases/_matrix_upgrade.py. Run phases stay in run/_campaign.py,
_points.py, _sweep.py and _assessment.py. Post phases live in
post/_rotor_plan.py, products.py, _reduction_stage.py and
_products_campaign.py. These homes keep the existing layer direction and
public import paths (AD-19 to AD-23).
Advanced¶
pyflightstream.overview.markdown_overview
¶
markdown_overview() -> str
Render the architecture overview as one markdown page.
Same content as :func:render_overview_html, for the docs site;
the build generates it through scripts/gen_docs_pages.py so the
published page can never drift from the code.
Returns:
| Type | Description |
|---|---|
str
|
Complete markdown page. |
pyflightstream.overview.overview
¶
overview(
*,
path: str | Path | None = None,
open_browser: bool = True,
) -> Path
Write the HTML architecture overview and open it in the browser.
This is the offline fallback of the published architecture page;
both are rendered from the same live docstrings by this module. It
is the LibraryHelp companion of :func:pyflightstream.help, the
command reference.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
str or Path
|
Where to write the page. Defaults to a stable file name in the system temporary directory, overwritten on each call. |
None
|
open_browser
|
bool
|
Whether to open the page with the default browser. Set False in headless environments and tests. |
True
|
Returns:
| Type | Description |
|---|---|
Path
|
Location of the written HTML file. |
pyflightstream.overview.render_overview_html
¶
render_overview_html() -> str
Render the architecture overview as one self-contained HTML page.
The entry view is the layer diagram (dependency flow); it is followed by the package docstring and one section per subpackage, each rendered from the module's live top docstring.
Returns:
| Type | Description |
|---|---|
str
|
Complete HTML document. |