Skip to content
This repository has been archived by the owner on Dec 13, 2020. It is now read-only.

Releases: Robpol86/colorclass

colorclass-2.2.0

15 May 02:11
Compare
Choose a tag to compare

Added

  • disable_if_no_tty () function to conditionally disable colors when STDERR and STDOUT are not streams.

Changed

  • Colors enabled by default always, like it was before v2.0.0.

colorclass-2.1.1

12 May 03:10
Compare
Choose a tag to compare

Fixed printing box drawing characters on Windows from Python 2.6.

colorclass-2.1.0

08 May 02:37
Compare
Choose a tag to compare

Added

  • keep_tags boolean keyword argument to Color(). Prevents colorclass from parsing curly brackets.
  • Automatically skip replacing stderr/stdout streams on latest Windows 10 versions with native ANSI color support.

Changed

  • Refactored most of windows.py.
  • Background color determined from either stderr or stdout, instead of just one stream (e.g. piping stderr to file).

Fixed

colorclass-2.0.0

10 Apr 22:05
Compare
Choose a tag to compare

Added

  • Python 3.5 support.
  • enable_all_colors(), is_enabled(), and is_light() toggle functions.
  • Library can be used as a script (e.g. echo "{red}Red{/red}" |python -m colorclass).
  • Ability to add/multiply Color instances just like str.
  • Ability to iterate a Color instance and have each character keep its color codes.

Changed

  • Converted library from Python module to a package.
  • set_light_background() and set_dark_background() no longer enable colors. Use enable_all_colors().
  • Colors are disabled by default when STDERR and STDOUT are not streams (piped to files/null). Similar to grep.
  • Reduce size of ANSI escape sequences by removing codes that have no effect. e.g. \033[31;35m to \033[35m.
  • Color methods that return strings now return Color instances instead of str instances.

Fixed

colorclass-1.2.0

20 Mar 06:28
Compare
Choose a tag to compare

colorclass-1.1.2

08 Jan 04:12
Compare
Choose a tag to compare
  • Maintaining Color type through .encode() and .decode() chains.

colorclass-1.1.1

04 Nov 04:36
Compare
Choose a tag to compare
  • Fixed Python 2.7 64-bit original colors bug on Windows.
  • Fixed resetting colors when reset_atexit is True.
  • Improved sorting of list_tags().

colorclass-1.1.0

02 Nov 01:22
Compare
Choose a tag to compare
  • Added native Windows support and automatic background colors.

colorclass-1.0.2

21 Oct 03:27
Compare
Choose a tag to compare
  • Added ability to disable/strip out all colors.

colorclass-1.0.1

11 Sep 20:19
Compare
Choose a tag to compare
  • Fixed splitlines() method.