Comparison
argparse vs args vs docopt-ng vs jsonargparse
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Python command-line parsing library
Archived. The repository is read-only: no more fixes or releases will come. It brings a standard-library module to older Pythons: on current versions, use the built-in one.
pip install argparseCommand Arguments for Humans.
Archived. The repository is read-only: no more fixes or releases will come.
pip install argsJazzband-maintained fork of docopt, the humane command line arguments parser.
Low maintenance activity. Last release over 3 years ago, commits in 1 of the last 26 weeks. Weaker on commit activity and recent releases.
pip install docopt-ngMinimal effort CLIs derived from type hints and parse from command line, config files and environment variables.
Actively maintained. Last release 5 weeks ago, commits in 25 of the last 26 weeks. A safe choice.
pip install jsonargparseIn short
- argparse is archived: avoid it for new projects.
- args is archived: avoid it for new projects.
- docopt-ng is the most used: 2.6M downloads a month.
- jsonargparse is better maintained: Pythie’s Index 85 against 26.
- docopt-ng is growing fastest: downloads +14% over the last month.
Side by side
| Metric | argparse | args | docopt-ng | jsonargparse |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 4 | Pythie’s Index: 4 | Pythie’s Index: 26 | Pythie’s Index: 85 |
| Verdict | Archived | Archived | Low maintenance activity | Actively maintained |
| Downloads / month | 11.4M | 335.8K | 2.6M | 1.8M |
| Downloads, month over month | +3% | +0% | +14% | +3% |
| GitHub stars | 57 | 206 | 227 | 434 |
| Stars, last 7 days | – | – | – | – |
| Direct dependents | 2.3K | 16 | 115 | 0 |
| Last release | Sep 12, 2015 | May 8, 2012 | May 30, 2023 | Oct 26, 2026 |
| Releases, 12 months | 0 | 0 | 0 | 11 |
| Weeks with commits | 0 / 26 | 0 / 26 | 1 / 26 | 25 / 26 |
| Recent contributors | 4 | 12 | 7 | 6 |
| First release | Oct 2006 | May 2012 | Mar 2019 | Aug 2019 |
| Python versions | 3.0 – 3.4 | – | 3.7 – 3.10 | 3.10 – 3.15 |
| License | non-standard | non-standard | MIT | MIT |
| Known vulnerabilities | None | None | None | None |
Bold marks the best value in each row. Pythie’s Index rates maintenance out of 100: how it works.