Rich-click

Latest version: v1.8.3

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

Scan your dependencies

Page 1 of 5

1.8.3

- Support `{cmd}` as an option/command group key when `python -m {cmd}` is the command_path.
- Fix yet another deprecation warning issue. (Sorry, sorry.)

1.8.2

- Fix another deprecation warning issue.

1.8.1

- Fixed bad deprecation warning with `highlighter`
- Fixed incompatibility with Click 9.

1.8.0

- Add `--rich-config` and `--output` options to the `rich-click` CLI.
- Lazy load Rich to reduce overhead when not rendering help text. [[154](https://github.com/ewels/rich-click/pull/154)]
- Some internal refactors. These refactors are aimed at making the abstractions more maintainable over time, more consistent, and more adept for advanced used cases.
- `rich_click.py` is exclusively the global config; all formatting has been moved to `rich_help_rendering.py`.
- `RichCommand` now makes use of methods in the super class: `format_usage`, `format_help_text`, `format_options`, and `format_epilog`.
- Global `formatter` object has been removed from the code.
- `highlighter` is now constructed by the `RichHelpFormatter` rather than being inside the config object.
- Added `RichHelpConfiguration.load_from_globals()` classmethod, which pulls all configuration from `rich_click.py`.
- Fix bug with regex highlighter for options and switches.
- `RichHelpConfiguration()` is now asserted to be JSON serializable, as an option for porting configurations. That said, serialization is not a fully supported feature of the high-level API, so serialize the config at your own risk.
- Related: `highlighter` is now deprecated in `RichHelpConfiguration`; please use `highlighter_patterns` instead.
- Moved exclusively to `pyproject.toml` and removed `setup.py` / `setup.cfg`; thank you [Stealthii](https://github.com/Stealthii)!
- Moved to `text_markup: Literal["markdown", "rich", "ansi", None]` instead of booleans.
- The default is now `ansi` instead of `None` to help support usage of `click.style()`. `None` is still supported.
- Fixed issue where error messages would not print to `stderr` by default.
- New configuration options: [[178](https://github.com/ewels/rich-click/pull/178)]
- `STYLE_OPTIONS_PANEL_BOX`
- `STYLE_COMMANDS_PANEL_BOX`
- `STYLE_ERRORS_PANEL_BOX`
- Many quality of life improvements for command and option groups:
- Support both `command_path` and `command.name`.
- Added wildcard (`*`) option for command groups and option groups, with thanks to [ITProKyle](https://github.com/ITProKyle)!
- Resolve duplicates.
- Better typing for option groups and command groups with `TypedDict` [[156](https://github.com/ewels/rich-click/pull/156)]
- Added `panel_styles` support to groups. [[178](https://github.com/ewels/rich-click/pull/178)]
- Allow `table_styles` and `panel_styles` to be defined for the positional arguments group.

1.7.4

- Fixed `legacy_windows` default. [[167](https://github.com/ewels/rich-click/issues/167)]

1.7.3

- Fix false deprecation warning. [[151](https://github.com/ewels/rich-click/issues/151)]

Page 1 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.