polytropos-docrecords: Self-documenting extensible records with provenance tracking and CLI generation
Self-documenting extensible records for polytropos,
providing configuration schema extraction, JSON/YAML merging with source provenance, and automated
CLI parser synthesis via optparse-applicative.
.
Inspired by and acknowledging Yves Parès's pioneering docrecords package from the
porcupine ecosystem, re-architected from scratch
on top of Polytropos's high-performance flat array representation (Polytropos.Core.Rep)
and compile-time dictionary synthesis (Polytropos.Plugin).
.
Key Features:
.
* Extensible documented records (Polytropos.DocRecord.DocRec) with per-field documentation strings.
* Tri-state missing value semantics (Polytropos.DocRecord.PossiblyEmpty) distinguishing unconfigured defaults from missing inputs.
* Hierarchical provenance tracking (Polytropos.DocRecord.SourceTag) with deterministic override semantics (CLI > YAML > Default).
* Automated Markdown schema generation (Polytropos.DocRecord.showDocumentation).
* Zero-boilerplate CLI synthesis (Polytropos.DocRecord.parseRecFromCLI) generating optparse-applicative options from record schemas.
.
Start at the front door module Polytropos.DocRecord for comprehensive documentation and worked examples.
[Skip to Readme]
Downloads
- polytropos-docrecords-0.1.0.2.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
| Versions [RSS] | 0.1.0.2 |
|---|---|
| Change log | CHANGELOG.md |
| Dependencies | aeson (>=2.0 && <2.3), base (>=4.14 && <5), bytestring (>=0.11 && <0.13), containers (>=0.6 && <0.9), optparse-applicative (>=0.17 && <0.20), polytropos-core (>=0.1 && <0.2), polytropos-plugin (>=0.1 && <0.2), primitive (>=0.8 && <1.0), text (>=2.0 && <2.2), unordered-containers (>=0.2.14 && <0.3), yaml (>=0.11 && <0.12) [details] |
| License | (EUPL-1.2 OR Apache-2.0) |
| Author | Nadia Yvette Chambers |
| Maintainer | nadia.yvette.chambers@ik.me |
| Uploaded | by nyc at 2026-10-21T21:34:38Z |
| Category | Configuration, Data, Records, CLI |
| Home page | https://github.com/NadiaYvette/polytropos |
| Bug tracker | https://github.com/NadiaYvette/polytropos/issues |
| Source repo | head: git clone https://github.com/NadiaYvette/polytropos(packages/polytropos-docrecords) |
| Distributions | |
| Downloads | 3 total (3 in the last 30 days) |
| Rating | (no votes yet) [estimated by Bayesian average] |
| Your Rating | |
| Status | Docs available [build log] Last success reported on 2026-10-21 [all 1 reports] |