Skip to main content

Colored terminal text made easy for Python and happiness.

Project description

# Hues This is the 90s and your terminal can display _16_ glorious colors. Your Python scripts deserve the some color love. Hues makes printing to console in color easy. Just grab the package from PIP, and your monochromatic days will be a thing of past!

## Quickstart

Go, grab the latest version from PIP. Run:

`bash pip install hues `

Then, in your scripts, do this:

`python >>> from hues import hue >>> print(hue('unicorns!').bright_cyan.bold) `

_whoa!_

All the colors, styles and backgrounds are available as object attributes. The chainable syntax is optimized deterministically using a push down automaton, so when you’re being particularly indecisive, you can:

`python >>> print(hue('MONDAY!').bold.red.bg_green.underline.bright_yellow) `

and there won’t be a single trace of red in your bright yellow message to mondays.

Each hue string is self closing, so you can’t accidentally color your whole terminal yellow because you forgot the reset escape sequence.

## Colors

All 16 glorious ANSI colors are available for both background and foreground. Assorted text styles such as `bold`, italics`_ and __`underline`__ are also available. Too many colors? Worry not fam, go to town with `reset attribute.

## Todo - [ ] Expand this readme. - [ ] Add screenshots! - [ ] Unicorns required.

> Back in my days, we didn’t even have colors!

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

hues-0.1.1.tar.gz (5.4 kB view details)

Uploaded Source

Built Distributions

hues-0.1.1-py3.5.egg (8.5 kB view details)

Uploaded Egg

hues-0.1.1-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file hues-0.1.1.tar.gz.

File metadata

  • Download URL: hues-0.1.1.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for hues-0.1.1.tar.gz
Algorithm Hash digest
SHA256 3178d12b16cc58ff492e71d4f97097d8e747960afd8945d900e98b8efcba0e5a
MD5 c4e7bbdc056a636743df6da8de79dff9
BLAKE2b-256 e5026207bcc8f2882b6cd79a47e8b30d12777f4f8730e4a65bacbd4b645ecabf

See more details on using hashes here.

File details

Details for the file hues-0.1.1-py3.5.egg.

File metadata

  • Download URL: hues-0.1.1-py3.5.egg
  • Upload date:
  • Size: 8.5 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for hues-0.1.1-py3.5.egg
Algorithm Hash digest
SHA256 b83c2d33397d341027e38eae1dc43356563af0a7168eed16c493c1efaab4e832
MD5 708d45f1a29c8e7e35baf20e3852a8ba
BLAKE2b-256 7ede29f7402796753bb625aab34021246ae0c91c36fac30bc8e455a538626ce2

See more details on using hashes here.

File details

Details for the file hues-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for hues-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 510c00e527c0ca93f6fc78331c1737ceaad5fc65375abf3e8485ebbbc0f2fdec
MD5 25a9d222ba213dcdbd430bd9ca29ba3b
BLAKE2b-256 e4ffabf1c00fb47c881b1ab1d038c8748b117d40ea5f8dc60e09d116eab5515a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page