Comparison
argh vs cyclopts vs docopt 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 arghIntuitive, easy CLIs based on type hints.
Actively maintained. Last release 7 days ago, commits in 26 of the last 26 weeks. A safe choice.
pip install cycloptsPythonic argument parser, that will make you smile
Likely abandoned. No release or commit for years (last release over 12 years ago).
pip install docoptBuild 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.
- docopt looks abandoned: avoid it for new projects.
- cyclopts is the most used: 101.4M downloads a month, 4.1× more than docopt.
- cyclopts also has the best Pythie’s Index (88).
- cyclopts is growing fastest: downloads +36% over the last month.
- Safe default for a new project: cyclopts.