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
Built Distributions
File details
Details for the file hues-0.2.2.tar.gz
.
File metadata
- Download URL: hues-0.2.2.tar.gz
- Upload date:
- Size: 7.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ec065be7a4fa8d12697a1ac9ad6b2519d8f7976b4b03f7c8f11cc721ba1b147 |
|
MD5 | c8596e57d708e450d94f1ad58a0de68a |
|
BLAKE2b-256 | c4fe457b0ddd67e0ea5f39f9098492512cb291ec3fc4084a3da2ed234128b29b |
File details
Details for the file hues-0.2.2-py3.5.egg
.
File metadata
- Download URL: hues-0.2.2-py3.5.egg
- Upload date:
- Size: 14.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e1cf47196a9ba6fa77c1841a491ffd642ec8b39093d44196076a2ca91edbd50 |
|
MD5 | e7c25c451f1b8a128fc313beee229726 |
|
BLAKE2b-256 | 511c925cf8ddfcd5974d3e40beda8a63027fac05d17e524bc5f045309b156c6b |
File details
Details for the file hues-0.2.2-py3-none-any.whl
.
File metadata
- Download URL: hues-0.2.2-py3-none-any.whl
- Upload date:
- Size: 8.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 108eed8a514235585a8ccd8bf2a6ea955eefc376024cbdc1db62dd17fc59909f |
|
MD5 | bf62988697f481367f6014b05d591260 |
|
BLAKE2b-256 | 6a6677a85736f2a18ccafd984ebe8dabd55c38a85facf17668263e9255f2888e |