pypi rich 4.0.0
A better Text.stylize

[4.0.0] - 2020-07-23

Major version bump for a breaking change to Text.stylize signature, which corrects a minor but irritating API wart. The style now comes first and the start and end offsets default to the entire text. This allows for text.stylize_all(style) to be replaced with text.stylize(style). The start and end offsets now support negative indexing, so text.stylize("bold", -1) makes the last character bold.



  • Change signature of Text.stylize to accept style first
  • Remove Text.stylize_all which is no longer necessary


latest releases: 10.12.0, 10.11.0, 10.10.0...
15 months ago