[OpenSTEF 4.0] Fix API reference completeness and structure
Maintainers usually reply within 2 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 42/100
- Issue type
- Documentation
- Clarity
- Clearly specified
- Activity status
- Quiet
- Tech stack
- python
- Domain
- documentation
Research direction
Start with api/index.rst, package_overview.rst and conf.py in the docs folder, and the __all__ in openstef_models.transforms, which exports module references. Run poe docs first to see the current autosummary warnings. Done means the build has zero autosummary/autodoc warnings, openstef_meta appears in the index, and the transforms page lists its classes. The issue also depends on #885, which is not yet merged, so check that before starting.
Written by the indexing model from the issue text.
Description
As a developer integrating or extending OpenSTEF
I want API docs that cover the full public surface with navigable hierarchy
So that I can discover and understand the library without reading source code
❗Priority
The API reference is missing approximately 40% of the public API surface. Specifically:
openstef_meta(entire package — models, presets, utils) has zero pagesopenstef_models.transformsrenders as an empty page — 24 public classes (OutlierHandler, Imputer, Scaler, etc.) are invisible- 5 real
openstef_modelssubmodules (workflows,presets,integrations,utils,mixins) are undocumented - Pydantic
Field(description=...)values (painstakingly written) are not rendered anywhere
Root cause analysis
| Problem | Root cause | Evidence |
|---|---|---|
transforms page empty |
__all__ = ['energy_domain', 'general', ...] exports module references, not classes. Autosummary can't classify ModuleType objects as functions/classes/attributes, so template variables are all empty |
Generated stub contains only automodule directive — no classes/functions sections |
Phantom pipelines, exceptions |
Listed in api/index.rst under openstef_models but modules don't exist (pipelines → renamed to workflows) |
WARNING: [autosummary] failed to import openstef_models.exceptions (×2 build warnings) |
openstef_meta absent |
Not listed in api/index.rst. Package IS importable in the docs venv — just never added to the RST |
uv pip show openstef-meta → installed; api/index.rst has no entry |
| Pydantic fields invisible | No autodoc-pydantic extension. Standard autodoc shows field name + type but discards Field(description=...) |
BacktestConfig source has description="Time interval between..." → HTML shows only prediction_sample_interval: timedelta |
| Sidebar noise | collapse_navigation: False with 95 generated pages + navigation_depth: 3 |
All items expanded simultaneously in left nav |
| Template hack | package_overview.rst hardcodes if fullname == 'openstef_core.datasets' to inject mixins submodule |
Won't scale; transforms has the exact same problem |
Definition of Done
✅ Acceptance criteria
Coverage:
-
openstef_metasection added to API index (models, presets, utils) -
openstef_models.transformslists all 5 submodules and their 24 public classes - Missing modules added:
workflows(2 classes),presets(1 class + 1 function),integrations(2 submodules),utils(4 submodules),mixins(3 classes) - Phantom entries removed:
pipelines,exceptions - Zero autosummary-related build warnings
Pydantic rendering:
-
Field(description=...)values shown alongside field definitions in HTML -
model_configClassVar hidden from field listings (noise) - Implementation: ~30 LOC
autodoc-process-docstringhook preferred overautodoc-pydanticdependency (semi-maintained, single maintainer, last commit 2023)
Navigation:
-
collapse_navigation: True(sections collapsed by default) - Package → module → class hierarchy visible (not flat list)
Template:
-
package_overview.rsthandles submodule-exporting packages generically (no hardcoded module names) - Recursive detection: if
__all__members areModuleType, treat as submodules
📄 Documentation criteria
- The API reference itself IS the deliverable
- Module/package docstrings rendered as overview text
🧪 Test criteria
poe docsbuilds with 0 autosummary/autodoc warnings- Spot-check:
openstef_models.transforms.generalpage shows OutlierHandler, Imputer, Scaler with class docstrings - Spot-check:
BacktestConfigpage shows "Time interval between prediction samples..." - Spot-check:
openstef_meta.presetspage renders
⌛ Dependencies
- #885 (myst-nb infra) — merged or rebased onto
🚀 Releasing
Part of v4.0.0 documentation
Technical approach (suggested)
- Fix
api/index.rst: Addopenstef_metasection; replacepipelines→workflows, removeexceptions; add missing modules - Fix template: In
package_overview.rst, detect module-type__all__members generically (or explicitly listtransformssubmodules inapi/index.rstas individual entries) - Pydantic hook (in
conf.py):autodoc-process-docstringevent that readsmodel_fieldsand appends field descriptions to the docstring - Nav config: Set
collapse_navigation: True, reducenavigation_depthto 2
- Dominant language
- Python
- Stars
- 169
- Forks
- 59
- Avg merge
- 4d 15h
- Merged PRs (30d)
- 8
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from OpenSTEF/openstef
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Maintainers usually reply within 2 days
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 2 days
-
Add support for LightGBM importance_type hyperparameterPossibly taken @divya234-hue claimed this 20 days ago. Openenhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 2 days
-
chore github-actions
Difficulty 3/5 1-2 days Newbie friendliness 67/100
Maintainers usually reply within 2 days
-
Add RMSEPossibly taken @SANJANAKUMARI83 claimed this 1 day ago. Openenhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 57/100
Maintainers usually reply within 2 days
All issues in OpenSTEF/openstef
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
software-mansion-labs/Diplomat#20 ·
Maintainers usually reply within 1 day
-
[Windows] Hidden title bar: a maximized window restored from minimized on a secondary monitor gets the primary monitor's work area as its client areaPossibly taken @lijy91 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
libnativeapi/nativeapi#53 · 1 reaction ·
Maintainers usually reply within 1 day
-
View Counts discarded due to field name mismatchPossibly taken @rsiva0400 claimed this today. Opensite-bug triage
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Model version publishes the new UK firm entity as a personPossibly taken @vahid-ahmadi claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
PolicyEngine/policyengine.py#764 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
spcl/HPCAgent-Bench#264 ·
Maintainers usually reply within 1 day