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.0.tar.gz (4.0 kB view details)

Uploaded Source

Built Distributions

hues-0.1.0-py3.5.egg (8.4 kB view details)

Uploaded Egg

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for hues-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3a4b3f0e31f0c13ed0025cc105fe15a1cc41101a6caca7b6f95f6be776fc241b
MD5 9c02ec6c5fc9b85dab3f9c37eea38c5c
BLAKE2b-256 de85c208ee9587453bb17a384eab0d7d6eeb176f9e0d6cd0596f5476a0dab19c

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for hues-0.1.0-py3.5.egg
Algorithm Hash digest
SHA256 074fd84290d785038b51b4882136c51498a74a4a8f6717fa1dd0de43d2f1133d
MD5 e7f9fa577c9143a19a93e9b4aba30e90
BLAKE2b-256 87d7f8f8c82ca9718f99ecf3679cbaec3e92afef6982e7f5945963194127ef99

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hues-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d70374f9cb00c35ca383bee49bacf92d77f6fcc435f255d759676f2027f66fbf
MD5 0e40a1cec7719122958fbbbcbcbc17c8
BLAKE2b-256 8661c7748c7653e752e2013b34dcd15e595a1701ca1443ca1841a517e2f72611

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