Module index¶
This page maps every module in the installed package to its role and the
API page that documents its public objects. Facade modules (cc4q,
cc4q.pipeline, cc4q.models) are intentionally thin: their
attributes are lazy aliases, and the implementation lives in submodules.
Module |
Role |
Documented in |
|---|---|---|
|
Lazy top-level facade ( |
|
|
Typer command-line entry point |
|
|
Lazy pipeline facade |
|
|
Lazy segmentation facade |
|
|
Stage 01: LibCST extraction |
|
|
Stage 02: Sphinx/reST docstring segmentation |
|
|
Stage 02: inline-comment sentence splitting |
|
|
Stage 02: block-comment segmentation |
|
|
Stage 03: SCCU assembly and JSON I/O |
|
|
Code-context cleaning policies |
|
|
YAML config loading |
|
|
Repository cloning |
|
|
Python-file discovery |
|
|
Record id generation |
|
|
Comment-density and quantum-residence metrics |
|
|
Repository-root/path helpers |
|
|
||
|
Low-level LibCST visitor |
|
|
Model-layer re-export facade |
|
|
Checkpoints, device resolution, classifier loading |
|
|
Snippet/corpus inference and fallback |
|
|
Fine-tuning and schema normalization |
|
|
Agreement, kappa, precision/recall, Wilson CI |
|
|
Random/stratified/quota sampling |
|
|
Session preparation and Streamlit launch |
|
|
Reusable annotation renderer (also embedded in the Workbench) |
|
|
Streamlit entrypoint; no importable public API |
|
|
Asset/workspace persistence |
|
|
User model package registry |
|
|
Static/data directory constants for the Workbench |
|
|
Starlette app, routes, and Uvicorn launcher |
Facades and implementation details¶
cc4q.pipelineandcc4quse module-level__getattr__to import heavy dependencies only when a name is first touched. Their__all__lists the supported aliases.cc4q.modelsre-exports the model-hub API for a shorter import path; new code can import fromcc4q.models.hubdirectly.Route handlers in
cc4q.web.serverand helpers prefixed with_are implementation details. The HTTP surface is the endpoint table in Web Workbench HTTP API; the Python-callable surface isrun_server,app, androutes.cc4q.annotate.appexecutes on import (it is launched bystreamlit run), so it is deliberately not documented as a library module.
API coverage¶
docs/check_api_coverage.py imports every public module, reads its
__all__, and verifies that each name appears as an autofunction,
autoclass, or autodata entry in this documentation tree. The docs
CI workflow runs it before sphinx-build -W. When adding a public
function, add its docstring and its directive on the matching API page; the
checker fails otherwise.