Pythie
CategoriesTrending
An open index of Python tools.Pythie’s IndexLegal noticePrivacyData: PyPI (package metadata; download statistics under CC BY 4.0, via ClickHouse), deps.dev (CC BY 4.0), GitHub, OSV.

click

8.5.1ActivePythie’s Index: 93

Composable command line interface toolkit

Actively maintained. Last release 3 weeks ago, commits in 20 of the last 26 weeks. A safe choice.

CLI & Terminal
$pip install click
pallets/clickHomepagePyPI

Click

Click is a Python package for creating beautiful command line interfaces in a composable way with as little code as necessary. It's the "Command Line Interface Creation Kit". It's highly configurable but comes with sensible defaults out of the box.

It aims to make the process of writing command line tools quick and fun while also preventing any frustration caused by the inability to implement an intended CLI API.

Click in three points:

  • Arbitrary nesting of commands
  • Automatic help page generation
  • Supports lazy loading of subcommands at runtime

A Simple Example

import click

@click.command()
@click.option("--count", default=1, help="Number of greetings.")
@click.option("--name", prompt="Your name", help="The person to greet.")
def hello(count, name):
    """Simple program that greets NAME for a total of COUNT times."""
    for _ in range(count):
        click.echo(f"Hello, {name}!")

if __name__ == '__main__':
    hello()
$ python hello.py --count=3
Your name: Click
Hello, Click!
Hello, Click!
Hello, Click!

Donate

The Pallets organization develops and supports Click and other popular packages. In order to grow the community of contributors and users, and allow the maintainers to devote more time to the projects, please donate today.

Contributing

See our detailed contributing documentation for many ways to contribute, including reporting issues, requesting features, asking or answering questions, and making PRs.

Popularity

Downloads / month
1.1B
GitHub stars
17.9K
Downloads, last 7 days
254M-6%
Stars, last 7 days
–
Direct dependents
37.5K
All dependents
143.8K

Pythie’s Index

How it works
93

Healthy

Maintenance, out of 100

  • Recent release

    last release 22 days ago

  • Commit activity

    20/26 weeks with commits

  • Release cadence

    7 releases in 12 months

  • Issues & PRs handled

    89% closed in the past year

  • Contributor spread

    4 authors in last 100 commits

  • OpenSSF Scorecard

    7.4/10

Commits, last 26 weeks186

Releases

Latest
8.5.1
Released
Nov 6, 2026
Releases, 12 months
7
First release
Apr 28, 2014

Compatibility

Requires Python
>=3.10
License
BSD-3-Clause (Permissive)

Keywords

pythoncliclickpallets

Alternatives

Use instead of click: tools that do the same job, closest first.

Compare with asyncclick →Compare with knack →Compare with face →Compare all 4 →

  • asyncclick8.4.2.1ActivePythie’s Index: 57

    Composable command line interface toolkit, async fork

    CLI & TerminalAsync & Concurrency1721M/moReleased Jun 30, 2026
  • knack0.14.0MaintainedPythie’s Index: 40

    A Command-Line Interface framework

    CLI & Terminal3593.6M/moReleased May 14, 2026
  • face26.0.1ActivePythie’s Index: 50

    A command-line application framework (and CLI parser). Friendly for users, full-featured for developers.

    CLI & Terminal2527.9M/moReleased Jun 17, 2026
  • docopt0.6.2InactivePythie’s Index: 19

    Pythonic argument parser, that will make you smile

    CLI & Terminal–25.4M/moReleased Jun 16, 2014
  • tyro1.0.17ActivePythie’s Index: 72

    CLI interfaces & config objects, from types

    CLI & TerminalTyping & Type Stubs1.2K13.9M/moReleased Nov 4, 2026
  • cyclopts5.5.3ActivePythie’s Index: 87

    Intuitive, easy CLIs based on type hints.

    CLI & Terminal1.3K95M/moReleased Nov 24, 2026

Works well with

Use together with click: extensions, drivers, servers and companion tools.

  • typerPythie’s Index: 88Typer, build great CLIs. Easy to code. Based on Python type hints.314.1M downloads/mo
  • rich-clickPythie’s Index: 82Format click help output nicely with rich14.7M downloads/mo
  • click-pluginsPythie’s Index: 8An extension module for click to enable registering CLI commands via setuptools entry-points.57.9M downloads/mo
  • click-replPythie’s Index: 70REPL plugin for Click54.3M downloads/mo
  • click-option-groupPythie’s Index: 47Option groups missing in Click33.8M downloads/mo
  • click-didyoumeanPythie’s Index: 20Enables git-like *did-you-mean* feature in click53.4M downloads/mo