Skip to main content

Html styled color printer for python

Project description

text = """ Example Text:

<red>This somewhat depends on what platform you are on.</red> The most <yellow>common</yellow> way to do this is <blue>by printing ANSI escape sequences.</blue> For a simple example, see this color map:

<black>black</black> <red>red</red> <green>green</green> <yellow>yellow</yellow> <blue>blue</blue> <magenta>magenta</magenta> <cyan>cyan</cyan> <lightgray>lightgray</lightgray> <darkgray>darkgray</darkgray> <lightred>lightred</lightred> <lightgreen>lightgreen</lightgreen> <lightyellow>lightyellow</lightyellow> <lightblue>lightblue</lightblue> <lightmagenta>lightmagenta</lightmagenta> <lightcyan>lightcyan</lightcyan> <white>white</white> """

text = "<green>TASIN IS REALLY COOL</green> Also: <blue>Ethan is cool i guess</blue>"

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hcprint-0.0.4.tar.gz (2.1 kB view hashes)

Uploaded source

Built Distribution

hcprint-0.0.4-py3-none-any.whl (2.7 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page