Comparison
argh vs autocommand vs decli vs targ
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Plain Python functions as CLI commands without boilerplate
Slowing down. Last release over 2 years ago, little activity since. Fine for existing code; think twice for a new project.
pip install arghA library to create a command-line program from a function
Likely abandoned. No release or commit for years (last release over 4 years ago).
pip install autocommandMinimal, easy-to-use, declarative cli tool
Low maintenance activity. Last release 18 months ago. Weaker on recent releases and release cadence.
pip install decliBuild a Python CLI for your app, just using type hints and docstrings.
Maintained. Last release 4 months ago, commits in 3 of the last 26 weeks. Weaker on commit activity and release cadence.
pip install targIn short
- argh is slowing down (last release over 2 years ago): fine for existing code, risky for a new project.
- autocommand looks abandoned: avoid it for new projects.
- decli is the most used: 4.2M downloads a month, 3.0× more than argh.
- Maintenance is comparable: targ 46, decli 37 on Pythie’s Index.
- targ is growing fastest: downloads +35% over the last month.
Side by side
| Metric | argh | autocommand | decli | targ |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 12 | 8 |