docopt
Create *beautiful* command-line interfaces with Python observed · 2026-08-28
Health v2 · maintenance only
45/100
- Activity 28
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 5261
- days_rel: n/a
- days_push: 436
- n_releases_24m: 0
Adoption not part of the score
8009 stars · 558 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
docopt is a command-line argument parsing library that generates a parser from the help message/usage patterns you write in your program's docstring. It has official implementations in Python, Go, and C++, and ports to many other languages.
Use cases
- parse command-line arguments from a docstring
- build a CLI without writing boilerplate parser code
- generate help messages from usage patterns
- define CLI options and positional arguments declaratively
- replace argparse with a help-message-driven parser
When to choose
- you want the CLI interface defined entirely in the help text
- you prefer declarative usage patterns over imperative parser code
- you want consistent parsing across Python, Go, or C++ projects
When to avoid
- you need subcommands with rich per-command help or type validation (argparse/click may fit better)
- you need runtime-generated or dynamic argument definitions
- the project is in maintenance mode and you want actively evolving features
Facets
library · maturity maintenance
parser cli developer-tools developer-tools parsers python go cpp cross-platform argument-parsing docstring-parser cli-framework usage-patterns command-line
2 sources
- readme: https://github.com/docopt/docopt · fetched 2026-08-28 · 3fd91b151063
- homepage: http://docopt.org/ · fetched 2026-08-29 · cfab93cfcb05
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| docopt/docopt | main | 45 |
| docopt/docopt.go | sdk | 23 |
| docopt/docopt.cpp | sdk | 43 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem