Skip to content

Releases: jose-pr/duho

Release list

v0.2.0

Choose a tag to compare

@github-actions github-actions released this 16 Jul 05:05

Added

  • Subcommand aliases: set _parseraliases_ on an Args subclass to register
    short/alternate names for it in a _subcommands_ tree (e.g. _parseraliases_ = ["c"] so app c runs the same command as app 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 --version flag, so
    an app already carrying the conventional __version__ gets --version for free.
    _version_ still wins when both are set (and remains the only form that accepts
    the duho.AUTO sentinel).

Changed

  • BREAKING: the command-dispatch hook is renamed from __run__ to __call__.
    An Args instance is now directly callable — instance() runs the command —
    and duho.main() dispatches to instance.__call__(). Rename def __run__(self)
    to def __call__(self) on your command classes.

Full Changelog: v0.1.1...v0.2.0

v0.1.1

Choose a tag to compare

@github-actions github-actions released this 14 Jul 22:27

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 LICENSE are absolute, so they resolve on the PyPI project
    page rather than 404ing.

Full Changelog: https://github.com/jose-pr/duho/commits/v0.1.1