click-default-group
click_default_group
Decision gist · record as of 2026-08-14
Yes, if you use Click and want a default subcommand behavior. The package is lightweight, stable, and dependency-light. Dormant maintenance is a minor concern only if you anticipate needing updates for future Click versions; for current Click releases, it works as documented with no known issues.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low install friction with a single dependency on click.
- Maintenance is dormant (last release 2023-08-04, last commit 2024-09-03), but the package is marked Production/Stable and has no known vulnerabilities.
License · maintenance · safety
permissive license (permissive) — Distributed under permissive licensing (BSD 3-Clause per description), allowing commercial and private use with minimal restrictions.
last release 2023-08-04 (1106 days) · last repo commit 2024-09-03 · 78 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 8,120,702 downloads/mo, #1,662 on PyPI
Alternatives
Verify before relying
pip install click-default-group
import click
from click_default_group import DefaultGroup
@click.group(cls=DefaultGroup, default='foo', default_if_no_args=True)
def cli():
pass
@cli.command()
def foo():
click.echo('foo')
cli()- Whether dormant maintenance status poses a risk for future Click API changes or Python version incompatibilities beyond those already declared.
- Real-world compatibility with Click versions beyond 7.0, given the last release was in 2023.
What it is and what it does
click-default-group is a small extension to Click that changes how command groups behave when invoked without a subcommand. Normally, Click shows a help message; this package lets you designate a default subcommand to run instead. You define the default by passing `default='subcommand_name'` and optionally `default_if_no_args=True` to the `@click.group()` decorator, and the specified subcommand executes automatically when the CLI is called with no arguments.
The package depends only on click and installs with low friction. It is marked Production/Stable and has no known security vulnerabilities. Maintenance is dormant (last release August 2023), but the codebase remains archived and the repository shows recent activity. It supports Python 2.7 and Python 3.5 through 3.11, as well as PyPy.
Use it for
- Build a CLI tool where running the command with no arguments triggers a sensible default action instead of showing help.
- Create a command-line interface where one subcommand is so frequently used that users expect it to run implicitly.
- Simplify user experience for single-purpose CLI wrappers that have optional alternate subcommands but a clear primary workflow.
- Extend existing Click applications to support a fallback behavior without rewriting the group logic.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you use Click and want a default subcommand behavior.
The package is lightweight, stable, and dependency-light. Dormant maintenance is a minor concern only if you anticipate needing updates for future Click versions; for current Click releases, it works as documented with no known issues.
Install
click-default-group on PyPI
Before you install
Low install friction with a single dependency on click. Maintenance is dormant (last release 2023-08-04, last commit 2024-09-03), but the package is marked Production/Stable and has no known vulnerabilities.
License in practice
Distributed under permissive licensing (BSD 3-Clause per description), allowing commercial and private use with minimal restrictions.
Quickstart
pip install click-default-group
import click
from click_default_group import DefaultGroup
@click.group(cls=DefaultGroup, default='foo', default_if_no_args=True)
def cli():
pass
@cli.command()
def foo():
click.echo('foo')
cli()
Verify before relying
- Whether dormant maintenance status poses a risk for future Click API changes or Python version incompatibilities beyond those already declared.
- Real-world compatibility with Click versions beyond 7.0, given the last release was in 2023.
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release >=2.7 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packageclick |
| Maintenance | Dormant 1,106 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 8,120,702 / month, #1,662 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: Public DomainProgramming Language :: PythonProgramming Language :: Python :: 2Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPy |
Evidence: click_default_group-1.2.4-py2.py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “click default subcommand”
- click-default-groupExtends Click's Group class to invoke a default subcommand when no…
- cloupCloup extends Click with option groups, parameter constraints,…
- asyncclickAsyncclick provides a fork of Click that enables async command and…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also click-aliases · click-didyoumean · click-plugins · click-help-colors · click-shell · md-click-2 · click-repl · click-log · cloup · more-click