Click-extra

Latest version: v4.15.0

Safety actively analyzes 723177 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 7 of 16

4.4.0

- Add a `reduce()` utility to reduce a collection of `Group` and `Platform` to a minimal set.
- Remove `destructive` and `non_destructive` pytest markers.
- Rename the `exclude_params` argument of `ParamStructure` and `ConfigOption` to `excluded_params`.
- Fix over-styling of usage heading in help screen.
- Move `bump-my-version` configuration to `pyproject.toml`.
- Remove `bump2version` from dev dependencies, and let the external workflows install it.
- Remove workaround for `pallets-sphinx-themes`'s outdated reference to old `click`'s Python 2 compatibility hack.

4.3.0

- Colorize envvars and default values in `--show-params` option.
- Keep `<stdout>` and `<stderr>` streams independent in `ExtraCliRunner`.
- Always collect `<stderr>` output and never raise an exception.
- Add a new `<output>` stream to simulate what the user sees in its terminal.
- Only mix `<stdout>` and `<stderr>` in `<output>` when `mix_stderr=True`.
- Print detailed CLI execution trace in logs.
- Document inline tests in Sphinx CLI execution blocks.
- Improve Pygments ANSI formatter and lexers documentation.
- Document usage of `pygmentize` command line.
- Regroup all parameter-related code.
- Regroup all testing and CLI execution utilities.
- Activate zoom on big Mermaid graphs.

4.2.0

- Add support for dedicated styling of environment variables, defaults, command aliases, aliases punctuation, subcommands and deprecated tag in help screen.
- Update default colors of help screen to improve readability.
- Change default style of critical log messages' prefix to bold red.
- Document the full matrix of colors and styles.
- Render bright variants of ANSI colors in documentation.
- Dynamically patch the style provided to `AnsiHtmlFormatter` to augment it with ANSI colors.
- Remove main dependency on `furo`, make it a development dependency.
- Remove the custom `ansi-click-extra-furo-style` Pygments style for Furo and its `AnsiClickExtraFuroStyle` class.

4.1.0

- Add new global `show_envvar` option to display all environment variables in help screens.
- Global `show_choices` setting to show or hide choices when prompting a user for input.
- Populate the `Allowed in conf?` column in `--show-params` output if there is a `--config` option in the command.
- Print all modified loggers and their levels in `DEBUG` mode.
- Directly download Pygments source code from GitHub to check for candidates for ANSI-coloring in unittests.
- Test continuously against Click and Cloup development version. Closes {issue}`525`.
- Move `click_extra.commands.TimerOption` to `click_extra.timer.TimerOption`.

4.0.0

- Drop support for Python 3.7.
- Add a simple `--telemetry`/`--no-telemetry` option flag which respects the `DO_NOT_TRACK` environment variable.
- Add new `populate_auto_envvars` parameter to `extra_command`/`extra_group` decorators to allow auto-generated environment variables to be displayed in help screens.
- Display all environment variables in `--show-params` output, including those auto-generated by the way of the `auto_envvar_prefix` context parameter.
- Allow user to override hard-coded context defaults on `extra_command`/`extra_group`.
- Change default log level from `INFO` to `WARNING` to aligns with Python's global root logger.
- Force resetting of log level on `--verbosity`'s context closing to the hard-coded default.
- Use a dedicated `click_extra` logger for all internal messages, instead of sending them to the user-defined one.
- Aligns `click_extra` logger level to `--verbosity` option level.
- Set default logger of `--verbosity` to Python's global `root` logger, instead a local wrapped logger. Closes {issue}`318`.
- Allow user to provide a string as the default logger to `--verbosity` that will be used to fetch the global logger singleton of that name. Closes {issue}`318`.
- Only colorize the `%(levelname)s` field during log record formatting, not the `:` message separator.
- Prefix `INFO`-level log message with `info: ` prefix by default.
- Raise an error if multiple `--version` options are defined in the same command. Closes {issue}`317`.
- Remove dependency on `click-log`.
- Remove supports for `Pallets-Sphinx-Themes < 2.1.0`.
- Force closing of the context before stopping the execution flow, to make sure all callbacks are called.
- Fix rendering of GitHub-Flavored Markdown tables in canonical format.

3.10.0

- Colorize help screens of subcommands spawned out of an `extra_group`. Closes {issue}`479`.
- Remove deprecated `click_extra.platform`.

Page 7 of 16

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.