2020-01-19 17:18:05 +00:00
# Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog ](https://keepachangelog.com/en/1.0.0/ ),
and this project adheres to [Semantic Versioning ](https://semver.org/spec/v2.0.0.html ).
2020-07-22 17:05:45 +00:00
## [3.4.1] - 2020-07-22
### Fixed
- Fixed incorrect default of expand in Table.grid
2020-07-22 15:18:35 +00:00
## [3.4.0] - 2020-07-22
2020-07-19 13:26:22 +00:00
### Added
2020-07-22 15:18:35 +00:00
- Added stream parameter to Console.input
2020-07-20 17:52:01 +00:00
- Added password parameter to Console.input
2020-07-19 13:26:22 +00:00
- Added description parameter to Progress.update
2020-07-20 17:52:01 +00:00
- Added rich.prompt
2020-07-22 15:18:35 +00:00
- Added detecting 'dumb' terminals
2020-07-22 16:11:06 +00:00
- Added Text.styled alternative constructor
2020-07-19 13:26:22 +00:00
2020-07-22 15:45:56 +00:00
### Fixes
- Fixed progress bars so that they are readable when color is disabled
2020-07-14 20:13:41 +00:00
## [3.3.2] - 2020-07-14
### Changed
- Optimized Text.pad
### Added
- Added rich.scope
- Change log_locals to use scope.render_scope
- Added title parameter to Columns
2020-07-14 09:03:17 +00:00
## [3.3.1] - 2020-07-13
2020-07-13 09:18:05 +00:00
### Added
- box.ASCII_DOUBLE_HEAD
2020-07-14 09:03:17 +00:00
### Changed
2020-07-13 15:00:56 +00:00
- Removed replace of -- --- ... from Markdown, as it made it impossible to include CLI info
2020-07-12 15:17:36 +00:00
## [3.3.0] - 2020-07-12
### Added
- Added title and title_align options to Panel
- Added pad and width parameters to Align
- Added end parameter to Rule
- Added Text.pad and Text.align methods
- Added leading parameter to Table
2020-07-10 16:09:41 +00:00
## [3.2.0] - 2020-07-10
2020-07-10 15:52:01 +00:00
### Added
- Added Align.left Align.center Align.right shortcuts
2020-07-10 16:09:41 +00:00
- Added Panel.fit shortcut
2020-07-10 16:26:31 +00:00
- Added align parameter to Columns
2020-07-10 15:52:01 +00:00
### Fixed
- Align class now pads to the right, like Text
2020-07-10 16:09:41 +00:00
- ipywidgets added as an optional dependency
2020-07-10 15:52:01 +00:00
- Issue with Panel and background color
2020-07-10 16:09:41 +00:00
- Fixed missing `__bool__` on Segment
### Changed
- Added `border_style` argument to Panel (note, `style` now applies to interior of the panel)
2020-07-10 15:52:01 +00:00
2020-07-09 15:48:10 +00:00
## [3.1.0] - 2020-07-09
### Changed
- Progress bars now work in Jupyter
## Added
- Added refresh_per_second to progress.track
- Added styles to BarColumn and progress.track
2020-07-07 17:14:43 +00:00
## [3.0.5] - 2020-07-07
### Fixed
- Fixed Windows version number require for truecolor
2020-07-07 16:18:05 +00:00
2020-07-07 15:08:47 +00:00
## [3.0.4] - 2020-07-07
### Changed
- More precise detection of Windows console https://github.com/willmcgugan/rich/issues/140
2020-07-03 16:17:37 +00:00
## [3.0.3] - 2020-07-03
### Fixed
- Fixed edge case with wrapped and overflowed text
### Changed
- New algorithm for compressing table that priorities smaller columns
### Added
- Added safe_box parameter to Console constructor
2020-07-02 19:00:33 +00:00
## [3.0.2] - 2020-07-02
### Added
- Added rich.styled.Styled class to apply styles to renderable
- Table.add_row now has an optional style parameter
- Added table_movie.py to examples
### Changed
- Modified box options to use half line characters at edges
- Non no_wrap columns will now shrink below minimum width if table is compressed
2020-06-30 20:40:11 +00:00
## [3.0.1] - 2020-06-30
### Added
- Added box.ASCII2
- Added markup argument to logging extra
### Changed
- Setting a non-None width now implies expand=True
2020-06-28 13:49:49 +00:00
## [3.0.0] - 2020-06-28
2020-06-28 10:45:14 +00:00
### Changed
- Enabled supported box chars for legacy Windows, and introduce `safe_box` flag
- Disable hyperlinks on legacy Windows
2020-06-28 13:36:15 +00:00
- Constructors for Rule and Panel now have keyword only arguments (reason for major version bump)
2020-06-28 13:44:08 +00:00
- Table.add_colum added keyword only arguments
2020-06-28 10:45:14 +00:00
### Fixed
- Fixed Table measure
2020-06-26 16:38:13 +00:00
## [2.3.1] - 2020-06-26
### Fixed
2020-06-26 16:46:26 +00:00
- Disabled legacy_windows if jupyter is detected https://github.com/willmcgugan/rich/issues/125
2020-06-26 16:38:13 +00:00
2020-06-26 10:29:05 +00:00
## [2.3.0] - 2020-06-26
### Fixed
- Fixed highlighting of paths / filenames
- Corrected docs for RichHandler which erroneously said default console writes to stderr
### Changed
- Allowed `style` parameter for `highlight_regex` to be a callable that returns a style
### Added
- Added optional highlighter parameter to RichHandler
2020-06-24 19:53:50 +00:00
## [2.2.6] - 2020-06-24
### Changed
2020-06-24 20:27:23 +00:00
- Store a "link id" on Style instance, so links containing different styles are highlighted together. (https://github.com/willmcgugan/rich/pull/123)
2020-06-24 19:53:50 +00:00
2020-06-23 10:45:40 +00:00
## [2.2.5] - 2020-06-23
2020-06-23 10:40:31 +00:00
### Fixed
2020-06-23 10:50:23 +00:00
- Fixed justify of tables (https://github.com/willmcgugan/rich/issues/117)
2020-06-23 10:40:31 +00:00
2020-06-21 11:26:08 +00:00
## [2.2.4] - 2020-06-21
2020-06-20 16:51:53 +00:00
### Added
- Added enable_link_path to RichHandler
2020-06-23 10:40:31 +00:00
- Added legacy_windows switch to Console constructor
2020-06-20 16:51:53 +00:00
2020-06-15 10:53:56 +00:00
## [2.2.3] - 2020-06-15
2020-06-15 10:51:52 +00:00
### Fixed
- Fixed console.log hyperlink not containing full path
### Changed
- Used random number for hyperlink id
2020-06-14 15:35:56 +00:00
## [2.2.2] - 2020-06-14
2020-06-14 14:23:43 +00:00
### Changed
2020-06-14 15:35:56 +00:00
- Exposed RichHandler highlighter as a class var
2020-06-14 14:23:43 +00:00
2020-06-14 13:51:19 +00:00
## [2.2.1] - 2020-06-14
### Changed
- Linked path in log render to file
2020-06-14 13:20:51 +00:00
## [2.2.0] - 2020-06-14
2020-06-13 13:48:53 +00:00
### Added
- Added redirect_stdout and redirect_stderr to Progress
### Changed
- printing to console with an active Progress doesn't break visuals
2020-06-11 17:34:38 +00:00
## [2.1.0] - 2020-06-11
2020-06-11 14:10:32 +00:00
### Added
- Added 'transient' option to Progress
2020-06-10 14:21:07 +00:00
### Changed
- Truncated overly long text in Rule with ellipsis overflow
2020-06-10 11:55:04 +00:00
## [2.0.1] - 2020-06-10
### Added
- Added expand option to Padding
### Changed
- Some minor optimizations in Text
### Fixed
- Fixed broken rule with CJK text
## [2.0.0] - 2020-06-06
2020-06-06 12:11:29 +00:00
### Added
- Added overflow methods
- Added no_wrap option to print()
2020-06-06 12:25:21 +00:00
- Added width option to print
2020-06-06 14:34:59 +00:00
- Improved handling of compressed tables
2020-06-06 12:11:29 +00:00
### Fixed
2020-06-06 14:34:59 +00:00
- Fixed erroneous space at end of log
2020-06-06 16:47:29 +00:00
- Fixed erroneous space at end of progress bar
2020-06-06 12:11:29 +00:00
### Changed
- Renamed \_ratio.ratio_divide to \_ratio.ratio_distribute
2020-06-07 09:13:43 +00:00
- Renamed JustifyValues to JustifyMethod (backwards incompatible)
2020-06-06 14:34:59 +00:00
- Optimized \_trim_spans
2020-06-07 09:13:43 +00:00
- Enforced keyword args in Console / Text interfaces (backwards incompatible)
2020-06-06 15:53:05 +00:00
- Return self from text.append
2020-06-06 12:11:29 +00:00
2020-06-01 18:18:42 +00:00
## [1.3.1] - 2020-06-01
2020-05-31 16:24:16 +00:00
### Changed
- Changed defaults of Table.grid
2020-06-01 15:08:06 +00:00
- Polished listdir.py example
### Added
- Added width argument to Columns
### Fixed
- Fixed for `columns_first` argument in Columns
- Fixed incorrect padding in columns with fixed width
2020-05-31 16:24:16 +00:00
## [1.3.0] - 2020-05-31
2020-05-26 13:24:08 +00:00
2020-05-30 10:44:34 +00:00
### Added
- Added rich.get_console() function to get global console instance.
2020-05-31 14:08:42 +00:00
- Added Columns class
2020-05-30 10:44:34 +00:00
2020-05-26 13:24:08 +00:00
### Changed
2020-05-26 15:02:03 +00:00
- Updated `markdown.Heading.create()` to work with subclassing.
2020-05-30 10:38:47 +00:00
- Console now transparently works with Jupyter
2020-05-26 13:24:08 +00:00
2020-05-30 10:44:34 +00:00
### Fixed
- Fixed issue with broken table with show_edge=False and a non-None box arg
2020-05-24 19:58:54 +00:00
## [1.2.3] - 2020-05-24
2020-05-22 20:52:28 +00:00
### Added
- Added `padding` parameter to Panel
2020-05-24 10:37:00 +00:00
- Added 'indeterminate' state when progress bars aren't started
2020-05-24 19:58:54 +00:00
### Fixed
2020-05-24 14:28:34 +00:00
- Fixed Progress deadlock https://github.com/willmcgugan/rich/issues/90
2020-05-22 20:52:28 +00:00
2020-05-24 19:58:54 +00:00
### Changed
- Auto-detect "truecolor" color system when in Windows Terminal
2020-05-22 15:56:21 +00:00
## [1.2.2] - 2020-05-22
### Fixed
- Issue with right aligned wrapped text adding extra spaces
2020-05-22 14:20:16 +00:00
## [1.2.1] - 2020-05-22
### Fixed
- Issue with sum and Style
2020-05-22 13:58:58 +00:00
## [1.2.0] - 2020-05-22
2020-05-21 16:15:08 +00:00
### Added
- Support for double underline, framed, encircled, and overlined attributes
### Changed
- Optimized Style
2020-05-22 09:33:57 +00:00
- Changed methods `__console__` to `__rich_console__` , and `__measure__` to `__rich_measure__`
2020-05-21 16:15:08 +00:00
2020-05-20 17:55:23 +00:00
## [1.1.9] - 2020-05-20
### Fixed
- Exception when BarColumn.bar_width == None
2020-05-20 16:19:55 +00:00
## [1.1.8] - 2020-05-20
### Changed
- Optimizations for Segment, Console and Table
### Added
- Added Console.clear method
- Added exporting of links to HTML
2020-05-19 12:38:13 +00:00
## [1.1.7] - 2020-05-19
2020-05-19 16:59:52 +00:00
### Added
- Added collapse_padding option to Table.
2020-05-19 12:38:13 +00:00
### Changed
- Some style attributes may be abbreviated (b for bold, i for italic etc). Previously abbreviations worked in console markup but only one at a time, i.e. "[b]Hello[/]" but not "[b i]Hello[/]" -- now they work everywhere.
2020-05-19 14:37:51 +00:00
- Renamed 'text' property on Text to 'plain'. i.e. text.plain returns a string version of the Text instance.
2020-05-19 12:38:13 +00:00
### Fixed
- Fixed zero division if total is 0 in progress bar
## [1.1.6] - 2020-05-17
2020-05-17 11:39:51 +00:00
### Added
- Added rich.align.Align class
- Added justify argument to Console.print and console.log
2020-05-15 13:07:27 +00:00
## [1.1.5] - 2020-05-15
### Changed
- Changed progress bars to write to stdout on terminal and hide on non-terminal
2020-05-15 11:48:14 +00:00
## [1.1.4] - 2020-05-15
2020-05-15 11:45:49 +00:00
### Fixed
- Fixed incorrect file and link in progress.log
- Fixes for legacy windows: Bar, Panel, and Rule now use ASCII characters
- show_cursor is now a no-op on legacy windows
### Added
- Added Console.input
### Changed
- Disable progress bars when not writing to a terminal
2020-05-15 11:48:14 +00:00
## [1.1.3] - 2020-05-14
2020-05-14 19:38:24 +00:00
### Fixed
- Issue with progress of one line`
2020-05-14 19:18:27 +00:00
## [1.1.2] - 2020-05-14
2020-05-12 20:25:39 +00:00
### Added
- Added -p switch to python -m rich.markdown to page output
2020-05-14 19:15:31 +00:00
- Added Console.control to output control codes
### Changed
- Changed Console log_time_format to no longer require a space at the end
- Added print and log to Progress to render terminal output when progress is active
2020-05-12 20:25:39 +00:00
2020-05-12 10:18:09 +00:00
## [1.1.1] - 2020-05-12
2020-05-12 10:15:59 +00:00
2020-05-12 20:25:39 +00:00
### Changed
2020-05-12 10:15:59 +00:00
- Stripped cursor moving control codes from text
2020-05-10 13:28:35 +00:00
## [1.1.0] - 2020-05-10
2020-05-09 11:47:32 +00:00
### Added
- Added hyperlinks to Style and markup
2020-05-10 12:49:14 +00:00
- Added justify and code theme switches to markdown command
2020-05-09 11:47:32 +00:00
2020-05-08 14:14:18 +00:00
## [1.0.3] - 2020-05-08
### Added
- Added `python -m rich.syntax` command
2020-05-08 13:04:20 +00:00
## [1.0.2] - 2020-05-08
2020-05-08 12:36:12 +00:00
2020-05-08 13:02:20 +00:00
### Fixed
- Issue with Windows legacy support https://github.com/willmcgugan/rich/issues/59
## [1.0.1] - 2020-05-08
2020-05-08 12:36:12 +00:00
### Changed
- Applied console markup after highlighting
- Documented highlighting
- Changed Markup parser to handle overlapping styles
- Relaxed dependency on colorama
- Allowed Theme to accept values as style definitions (str) as well as Style instances
- Added a panel to emphasize code in Markdown
### Added
- Added markup.escape
- Added `python -m rich.theme` command
- Added `python -m rich.markdown` command
- Added rendering of images in Readme (links only)
### Fixed
- Fixed Text.assemble not working with strings https://github.com/willmcgugan/rich/issues/57
- Fixed table when column widths must be compressed to fit
2020-05-03 10:27:05 +00:00
## [1.0.0] - 2020-05-03
2020-04-29 10:51:46 +00:00
### Changed
- Improvements to repr highlighter to highlight URLs
2020-04-28 15:10:21 +00:00
## [0.8.13] - 2020-04-28
2020-04-28 13:38:35 +00:00
### Fixed
- Fixed incorrect markdown rendering for quotes and changed style
2020-04-21 08:33:06 +00:00
## [0.8.12] - 2020-04-21
2020-04-19 14:12:24 +00:00
### Fixed
- Removed debug print from rich.progress
2020-04-14 14:38:39 +00:00
## [0.8.11] - 2020-04-14
2020-04-13 11:24:13 +00:00
### Added
- Added Table.show_lines to render lines between rows
### Changed
- Added markup escape with double square brackets
2020-04-12 14:33:12 +00:00
## [0.8.10] - 2020-04-12
### Fixed
- Fix row_styles applying to header
2020-04-12 11:48:00 +00:00
## [0.8.9] - 2020-04-12
2020-04-02 15:59:44 +00:00
### Changed
2020-04-12 12:08:47 +00:00
- Added force_terminal option to `Console.__init__`
2020-04-02 16:09:41 +00:00
2020-04-12 11:48:00 +00:00
### Added
- Added Table.row_styles to enable zebra striping.
2020-03-31 15:49:31 +00:00
## [0.8.8] - 2020-03-31
### Fixed
- Fixed background in Syntax
2020-03-31 13:25:49 +00:00
## [0.8.7] - 2020-03-31
### Fixed
- Broken wrapping of long lines
- Fixed wrapping in Syntax
### Changed
- Added word_wrap option to Syntax, which defaults to False.
- Added word_wrap option to Traceback.
## [0.8.6] - 2020-03-29
### Added
- Experimental Jupyter notebook support: from rich.jupyter import print
2020-03-29 12:59:00 +00:00
## [0.8.5] - 2020-03-29
### Changed
- Smarter number parsing regex for repr highlighter
### Added
- uuid highlighter for repr
2020-03-28 15:41:15 +00:00
## [0.8.4] - 2020-03-28
### Added
- Added 'test card', run python -m rich
### Changed
- Detected windows terminal, defaulting to colorama support
### Fixed
- Fixed table scaling issue
2020-03-27 10:22:43 +00:00
## [0.8.3] - 2020-03-27
### Fixed
- CJK right align
2020-03-27 08:34:09 +00:00
## [0.8.2] - 2020-03-27
### Changed
- Fixed issue with 0 speed resulting in zero division error
- Changed signature of Progress.update
- Made calling start() a second time a no-op
2020-03-22 15:46:43 +00:00
## [0.8.1] - 2020-03-22
### Added
- Added progress.DownloadColumn
2020-03-17 17:12:08 +00:00
## [0.8.0] - 2020-03-17
2020-03-16 22:18:22 +00:00
### Added
- CJK support
2020-03-17 16:38:45 +00:00
- Console level highlight flag
2020-03-17 17:07:00 +00:00
- Added encoding argument to Syntax.from_path
2020-03-16 22:18:22 +00:00
### Changed
2020-03-17 17:07:00 +00:00
- Dropped support for Windows command prompt (try https://www.microsoft.com/en-gb/p/windows-terminal-preview/)
2020-03-16 22:18:22 +00:00
- Added task_id to Progress.track
2020-03-15 15:50:10 +00:00
## [0.7.2] - 2020-03-15
### Fixed
- KeyError for missing pygments style
2020-03-13 14:27:24 +00:00
## [0.7.1] - 2020-03-13
### Fixed
- Issue with control codes being used in length calculation
2020-03-13 14:57:02 +00:00
### Changed
- Remove current_style concept, which wasn't really used and was problematic for concurrency
2020-03-12 17:36:40 +00:00
## [0.7.0] - 2020-03-12
2020-03-05 18:21:22 +00:00
### Changed
- Added width option to Panel
- Change special method `__render_width__` to `__measure__`
2020-03-10 21:39:12 +00:00
- Dropped the "markdown style" syntax in console markup
2020-03-11 00:14:16 +00:00
- Optimized style rendering
2020-03-05 18:21:22 +00:00
2020-03-07 17:45:01 +00:00
### Added
- Added Console.show_cursor method
2020-03-10 21:39:12 +00:00
- Added Progress bars
2020-03-07 17:45:01 +00:00
2020-03-09 17:28:49 +00:00
### Fixed
- Fixed wrapping when a single word was too large to fit in a line
2020-03-03 16:20:28 +00:00
## [0.6.0] - 2020-03-03
2020-03-01 14:43:46 +00:00
### Added
- Added tab_size to Console and Text
- Added protocol.is_renderable for runtime check
2020-03-02 10:26:55 +00:00
- Added emoji switch to Console
- Added inherit boolean to Theme
- Made Console thread safe, with a thread local buffer
2020-03-01 14:43:46 +00:00
### Changed
- Console.markup attribute now effects Table
- SeparatedConsoleRenderable and RichCast types
### Fixed
- Fixed tabs breaking rendering by converting to spaces
2020-02-23 18:29:43 +00:00
## [0.5.0] - 2020-02-23
2020-02-23 18:27:38 +00:00
### Changed
- Replaced `__console_str__` with `__rich__`
2020-02-22 20:43:24 +00:00
## [0.4.1] - 2020-02-22
### Fixed
- Readme links in Pypi
## [0.4.0] - 2020-02-22
2020-02-21 18:09:45 +00:00
### Added
- Added Traceback rendering and handler
- Added rich.constrain
2020-02-21 18:29:25 +00:00
- Added rich.rule
2020-02-21 18:09:45 +00:00
### Fixed
- Fixed unnecessary padding
2020-02-04 18:28:55 +00:00
## [0.3.3] - 2020-02-04
2020-02-02 14:13:31 +00:00
### Fixed
- Fixed Windows color support
2020-02-04 18:26:53 +00:00
- Fixed line width on windows issue (https://github.com/willmcgugan/rich/issues/7)
- Fixed Pretty print on Windows
2020-02-02 14:13:31 +00:00
2020-01-26 16:09:22 +00:00
## [0.3.2] - 2020-01-26
### Added
- Added rich.logging
## [0.3.1] - 2020-01-22
2020-01-22 16:22:23 +00:00
### Added
- Added colorama for Windows support
2020-01-19 17:18:05 +00:00
## [0.3.0] - 2020-01-19
### Added
2020-06-11 14:10:32 +00:00
- First official release, API still to be stabilized