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 >>> import hues >>> hues.log('42') >>> hues.info('42') `

### Configuration

[TODO]

_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 <u>`underline`</u> 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.2.1.tar.gz (7.5 kB view details)

Uploaded Source

Built Distributions

hues-0.2.1-py3.5.egg (14.6 kB view details)

Uploaded Egg

hues-0.2.1-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for hues-0.2.1.tar.gz
Algorithm Hash digest
SHA256 2ffb195c72e5414aaa5ebc35366c2d474c1464cfe8467bcf3ae3d4ba5b63020f
MD5 1caa5b2090df3e99b6920373e1b9472b
BLAKE2b-256 41143991ac36d0d9a58b1c8c39860edf306d61c3be530ad5dc8248560e1a7c36

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for hues-0.2.1-py3.5.egg
Algorithm Hash digest
SHA256 d0c8b71f2b1a667fa8921ac72b743fa7eb49bca5de616f3d32b7972d7e436823
MD5 83dcf137b7d122874869f55d2726739e
BLAKE2b-256 cdd92c9c49dbea6ab5680dab0ea1df49ad671170ea7dfae7863aef0280ba866e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hues-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1af67ed7dca3a1793c1f18df719c53d37596540c6746b2e7986e52093a595959
MD5 bb857a880bed4e3308a9e850a2211445
BLAKE2b-256 4047f1529ed03efe65305ca32bc3dd9309366c43c00140ca044011d6f32044ac

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