click-option-group
Option groups missing in Click
Decision gist · record as of 2026-08-14
Yes, if you use Click and need option groups. The package is stable, has no known vulnerabilities, and low install friction. The aging maintenance status (309 days since last release) is a minor concern but not a blocker—the repository is still active and the package works with current Python versions. Install it when your CLI would benefit from grouped, organized options.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 status is aging—last release was 309 days ago—but the repository remains active and the package supports current Python versions (3.7 through 3.13).
License · maintenance · safety
BSD-3-Clause (permissive) — BSD-3-Clause is permissive; you can use this package freely in commercial and private projects with minimal restrictions.
last release 2025-10-09 (309 days) · last repo commit 2025-10-09 · 121 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 30,823,118 downloads/mo, #792 on PyPI
Alternatives
Verify before relying
pip install click-option-group
import click
from click_option_group import optgroup, RequiredMutuallyExclusiveOptionGroup
@click.command()
@optgroup.group('Server config')
@optgroup.option('-h', '--host', default='localhost')
@optgroup.option('-p', '--port', type=int, default=8888)
def cli(**params):
print(params)
if __name__ == '__main__':
cli()- Whether the aging maintenance status (309 days since last release) affects stability or compatibility with recent Click versions.
- Performance characteristics when managing many option groups or deeply nested group hierarchies.
What it is and what it does
click-option-group extends Click, Python's popular CLI framework, with the ability to organize command-line options into named groups. Click itself lacks this feature, even though argparse provides it by default. This package fills that gap by letting you group related options together in help text and apply collective behaviors—such as marking a group as mutually exclusive or required—using a clean, Click-like decorator API.
The package is typically used when building CLI tools that need to present options in a more structured way to users. Instead of a flat list of flags, you can organize them into logical sections (e.g., "Server configuration" vs. "Input data sources") and enforce constraints across grouped options. It depends only on click and integrates directly into your command decorators.
Use it for
- Organize database connection options (host, port, user, password) into a single "Database" group in your CLI help output.
- Create mutually exclusive input source groups where a user must choose exactly one of --json-file, --csv-file, or --stdin.
- Group authentication options (API key, OAuth token, username/password) and mark them as required as a unit.
- Structure tool configuration into logical sections (logging, performance, security) for better CLI usability.
- Enforce that certain options can only be used together (e.g., --encrypt and --key-file in the same group).
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you use Click and need option groups.
The package is stable, has no known vulnerabilities, and low install friction. The aging maintenance status (309 days since last release) is a minor concern but not a blocker—the repository is still active and the package works with current Python versions. Install it when your CLI would benefit from grouped, organized options.
Install
click-option-group on PyPI
Before you install
Low install friction with a single dependency on click. Maintenance status is aging—last release was 309 days ago—but the repository remains active and the package supports current Python versions (3.7 through 3.13).
License in practice
BSD-3-Clause is permissive; you can use this package freely in commercial and private projects with minimal restrictions.
Quickstart
pip install click-option-group
import click
from click_option_group import optgroup, RequiredMutuallyExclusiveOptionGroup
@click.command()
@optgroup.group('Server config')
@optgroup.option('-h', '--host', default='localhost')
@optgroup.option('-p', '--port', type=int, default=8888)
def cli(**params):
print(params)
if __name__ == '__main__':
cli()
Verify before relying
- Whether the aging maintenance status (309 days since last release) affects stability or compatibility with recent Click versions.
- Performance characteristics when managing many option groups or deeply nested group hierarchies.
Package facts
| License | BSD-3-Clause permissive |
| Python support | Supports the current Python release >=3.7 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packageclick |
| Maintenance | Aging 309 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 30,823,118 / month, #792 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaEnvironment :: ConsoleIntended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Software Development :: Libraries |
Evidence: click_option_group-0.5.9-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 option groups”
- click-option-groupAdds option groups to Click CLI applications, enabling logical…
- cloupCloup extends Click with option groups, parameter constraints,…
- msgspec-clickGenerates Click command-line options automatically from msgspec type…
Give your agent the search over MCP, or paste the wish link into any chat.
More Libraries packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Provides parsing, arithmetic, and recurrence rule computation for dates and times, with timezone support and iCalendar RFC compliance.
Install it if you need to parse flexible date strings, compute relative dates, handle timezones, or work with recurrence rules—it's the de facto choice for these tasks.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.
See also cloup · click-datetime · rich-click · click-help-colors · click-aliases · click · click-config-file · click-plugins · sphinx-argparse