./devel/py-crayons, Colored string formatting for the terminal

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


Branch: CURRENT, Version: 0.4.0nb1, Package name: py310-crayons-0.4.0nb1, Maintainer: pkgsrc-users

This module is really simple, it gives you colored strings for terminal usage.
Included colors are red, green, yellow, blue, black, magenta, magenta, cyan,
white, clean, and disable.

Crayons is nice because it automatically wraps a given string in both the
foreground color, as well as returning to the original state after the string
is complete. Most terminal color libraries make you manage this yourself.


Required to run:
[devel/py-setuptools] [comms/py-colorama] [lang/python37]

Required to build:
[pkgtools/cwrappers]

Master sites:

Filesize: 4.475 KB

Version history: (Expand)


CVS history: (Expand)


   2023-07-01 10:53:22 by Thomas Klausner | Files touched by this commit (3)
Log message:
*: mark dependencies of py-colorama as not-for-Python-2
   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 12:20:11 by Nia Alarie | Files touched by this commit (3016)
Log message:
archivers: Replace RMD160 checksums with BLAKE2s checksums

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

Could not be committed due to merge conflict:
devel/py-traitlets/distinfo

The following distfiles were unfetchable (note: some may be only fetched
conditionally):

./devel/pvs/distinfo pvs-3.2-solaris.tgz
./devel/eclipse/distinfo eclipse-sourceBuild-srcIncluded-3.0.1.zip
   2021-10-07 15:44:44 by Nia Alarie | Files touched by this commit (3017)
Log message:
devel: Remove SHA1 hashes for distfiles
   2021-03-21 21:10:15 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-crayons: updated to 0.4.0

v0.4.0

Check that sys.stdout object has isatty attribute in addition to it being True
If using a custom object that does not have the isatty attribute and you would \ 
still like color, you can set the CLINT_FORCE_COLOR environment variable
   2020-07-08 16:55:18 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-crayons: updated to 0.3.1

v0.3.1

Bugfixes
Explicitly set incoming parameter to crayons to string (so that len, etc. work \ 
as expected)
   2019-11-06 18:31:40 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-crayons: updated to 0.3.0

v0.3.0
Breaking:
Rewrites clean to just remove ANSI codes, not whatever it was doing before \ 
(which seemed to be stripping all characters from the string)

Features:
Adds random function to get a random color (thanks @azillion)
Adds replace_color function to allow setting replacement for a given color (e.g. \ 
replace blue with magneta) (thanks @frostming)
Adds reset_replace_color to reset any replacement colors set
   2019-05-15 12:56:23 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-crayons: updated to 0.2.0

0.2.0:
Unknown changes