# BrianPugh/cyclopts

Intuitive, easy CLIs based on python type hints.

Repository: https://github.com/BrianPugh/cyclopts
Canonical: https://ross.abutalabs.com/products/cyclopts
Language: Python
License: Apache-2.0
License Family: permissive
Topics: argument-parser, python, shell, typehints, cli
Last push: 2026-09-03T01:12:02+00:00

## Health v2 (maintenance only)
Score: 90/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 100, release rhythm 87, longevity 73
- inputs: {"age_days": 1035, "days_push": 0, "days_rel": 7, "gap_med": 3.0, "n_releases_24m": 111}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1244, forks 54 (observed 2026-09-03T02:15:05.187697+00:00)

## What it is
Cyclopts is a modern Python CLI framework that builds command-line interfaces from function signatures and type hints. It supports advanced typing (Pydantic, dataclasses, attrs, Unions, Literals), automatic help generation from docstrings, and command registration via decorators.

## Use cases
- build a CLI from python type hints
- create multi-command CLI apps with subcommands
- generate help pages automatically from docstrings
- parse complex types like unions and pydantic models from command-line arguments
- replace argparse or typer with a more intuitive CLI library
- add argument validation and converters to CLI tools

## When to choose
- you want a terse, type-hint-driven CLI framework in Python 3.10+
- you need richer type support and docstring-based help than Typer provides
- you use Pydantic, dataclasses, or attrs models as CLI parameters

## When to avoid
- you need to support Python versions older than 3.10
- you prefer minimal dependencies or the stdlib argparse
- you are building CLIs outside the Python ecosystem

## Facets
- artifact type: library
- maturity: active
- function: cli, developer-tools
- domain: developer-tools
- platform: python, cli, cross-platform
- tags: argument-parser, type-hints, cli-framework, docstring-help, pydantic-support, command-line, python

## Member repositories
- BrianPugh/cyclopts (main) score 90

## Provenance
- Observed fields: from GitHub, fetched 2026-09-03T02:15:05.187697+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T05:10:01.259911+00:00, confidence not recorded.
  - readme: https://github.com/BrianPugh/cyclopts (fetched 2026-09-03T02:15:05.187697+00:00, sha 350a8e6d3949)
  - registry_pypi: https://pypi.org/pypi/cyclopts/json (fetched 2026-08-29T12:21:00.028914+00:00, sha f376c25c9f54)
- Data as of 2026-08-30T08:39:29.467469+00:00.
