Releases: jose-pr/duho
Releases · jose-pr/duho
Release list
v0.2.0
Added
- Subcommand aliases: set
_parseraliases_on anArgssubclass to register
short/alternate names for it in a_subcommands_tree (e.g._parseraliases_ = ["c"]soapp cruns the same command asapp create). Aliases dispatch to the
same__call__. Absence of the attr is the unchanged default (no aliases). __version__fallback for--version: when_version_is unset, a
class-level__version__string is now used to populate the--versionflag, so
an app already carrying the conventional__version__gets--versionfor free.
_version_still wins when both are set (and remains the only form that accepts
theduho.AUTOsentinel).
Changed
- BREAKING: the command-dispatch hook is renamed from
__run__to__call__.
AnArgsinstance is now directly callable —instance()runs the command —
andduho.main()dispatches toinstance.__call__(). Renamedef __run__(self)
todef __call__(self)on your command classes.
Full Changelog: v0.1.1...v0.2.0
v0.1.1
Added
- Documentation site at https://jose-pr.github.io/duho/ — guides for declaring
arguments, types and conversion, running your app, configuration layers,
logging, and shell completion, plus a generated API reference.
Changed
- Corrected the performance figures in the release notes to numbers measured on
a fixed CI runner. Parser construction is 40–70× faster than the uncached
path (10.5–11.0 ms → 0.15–0.27 ms, median, on Python 3.9 and 3.13); the
previously published multiplier came from a noisy development machine.
Fixed
- README links to
LICENSEare absolute, so they resolve on the PyPI project
page rather than 404ing.
Full Changelog: https://github.com/jose-pr/duho/commits/v0.1.1