docopt
Create *beautiful* command-line interfaces with Python observed · 2026-10-12
Health v2 · maintenance only
41/100
- Activity 20
- 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-10-21. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 5309
- days_rel: n/a
- days_push: 484
- n_releases_24m: 0
Adoption not part of the score
8004 stars · 557 forks observed · 2026-10-12
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-10-12 · 3fd91b151063
- homepage: http://docopt.org/ · fetched 2026-08-29 · cfab93cfcb05
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| docopt/docopt | main | 41 |
| docopt/docopt.go | sdk | 23 |
| docopt/docopt.cpp | sdk | 39 |
| docopt/docopt.rs | sdk | 10 |
| docopt/docopts | sdk | 23 |
| docopt/docopt.rb | sdk | 32 |
| docopt/docopt.c | sdk | 32 |
| docopt/docopt.php | sdk | 34 |
| docopt/docopt.nim | sdk | 23 |
| docopt/docopt.java | sdk | 32 |
| docopt/docopt.hs | sdk | 52 |
| docopt/docopt.clj | sdk | 32 |
| docopt/try.docopt.org | docs | 32 |
| docopt/docopt.swift | sdk | 32 |
For agents
Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem