./textproc/py-colored, Python library for coloring terminal text

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 2.2.4, Package name: py311-colored-2.2.4, Maintainer: pkgsrc-users

colored is a very simple Python library for color and formatting in
terminals.


Required to run:
[lang/python310]

Master sites:

Filesize: 12.893 KB

Version history: (Expand)


CVS history: (Expand)


   2024-01-15 14:26:26 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-colored: updated to 2.2.4

2.2.4

Fix cprint: don't change fore_color or back_color if they were omitted
   2023-10-28 21:57:26 by Thomas Klausner | Files touched by this commit (516) | Package updated
Log message:
python/wheel.mk: simplify a lot, and switch to 'installer' for installation

This follows the recommended bootstrap method (flit_core, build, installer).

However, installer installs different files than pip, so update PLISTs
for all packages using wheel.mk and bump their PKGREVISIONs.
   2023-08-06 09:30:24 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-colored: updated to 2.2.3

Version 2.2.3 - (07-07-2023)

Fixed

Typing error

Version 2.2.2 - (26-06-2023)

Added

Set for environment variable $COLORTERM

Updated

Maximum number range for RGB colors

Version 2.2.1 - (25-06-2023)

Updated

Exception InvalidNavigation -> InvalidControl

Version 2.2.0 - (24-06-2023)

Added

CSI (Control Sequence Introducer) sequences
SGR (Select Graphic Rendition) parameter style underline color
Support RGB color schema

Updated

cprint() to support RGB colors

Fixed

Typo for style 'underlined', changed to 'underline'

Version 2.1.1 - (20-06-2023)

Updated

Legacy support versions 1.x.x:

Functions fg(), bg(), attr() are back until deprecated to the future.

Class attributes fore, back and style will be available also but instead \ 
imported them directly, you can use like the examples below:

from colored.foreground import fore
from colored.background import back
from colored.attributes import style

Version 2.1.0 - (20-06-2023)

Updated

Updated library for default values
Replace function show_colour() with cprint()

Added

cprint(text, foreground='', background='', formatting='', reset=True, **kwargs) \ 
function

Version 2.0.0 - (19-06-2023)

Updated

Coding style
For typing hints
Class names:

fore -> Fore
back -> Back
style -> Style

Function names:

fg() -> fore()
bg() -> back()
attr() -> style()

Class attributes styles and colors in lower case, example:

Fore.red is the same Fore.RED
Style.bold is the same Style.BOLD

Added

Documentation site: https://dslackw.gitlab.io/colored

Styles italic and strikeout

Function show_colour()
   2022-11-17 18:32:56 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-colored: updated to 1.4.4

Version 1.4.4
Updated
- Code style
- Switch to f string
- Removed python2 support
- Use windows types instead of raw ctypes.
   2022-01-04 21:55:40 by Thomas Klausner | Files touched by this commit (1595)
Log message:
*: bump PKGREVISION for egg.mk users

They now have a tool dependency on py-setuptools instead of a DEPENDS
   2021-10-26 13:23:42 by Nia Alarie | Files touched by this commit (1161)
Log message:
textproc: Replace RMD160 checksums with BLAKE2s checksums

All checksums have been double-checked against existing RMD160 and
SHA512 hashes

Unfetchable distfiles (fetched conditionally?):
./textproc/convertlit/distinfo clit18src.zip
   2021-10-25 18:51:47 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-colored: updated to 1.4.3

Version 1.4.3
Updated
- Improve color enabling
   2021-10-07 17:02:49 by Nia Alarie | Files touched by this commit (1162)
Log message:
textproc: Remove SHA1 hashes for distfiles