Simple and lightweight shell color output function.
Project description
# python-kolors
Simple and lightweight shell color output function.
It also checks if terminal supports color before vomitting ANSI codes.
## Usage
```python
from kolors import c
print c('Some <red>Red</end> and <blue>blue</end> text')
print c('<green bg>Some green background</end>')
print c('Some <cyan bold bg>{}</end>').format('interpolation')
```
**Note**: the keyword in the closing tag isn't really relevant, but I like to
use "</end>" everywhere for shortness and consistency. Simple shell color
output function.
## Colors
* grey (alias: gray)
* red
* green
* yellow
* blue
* magenta (alias: purple)
* cyan
* white
# Styles
* bold
* bg
Simple and lightweight shell color output function.
It also checks if terminal supports color before vomitting ANSI codes.
## Usage
```python
from kolors import c
print c('Some <red>Red</end> and <blue>blue</end> text')
print c('<green bg>Some green background</end>')
print c('Some <cyan bold bg>{}</end>').format('interpolation')
```
**Note**: the keyword in the closing tag isn't really relevant, but I like to
use "</end>" everywhere for shortness and consistency. Simple shell color
output function.
## Colors
* grey (alias: gray)
* red
* green
* yellow
* blue
* magenta (alias: purple)
* cyan
* white
# Styles
* bold
* bg
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
kolors-0.0.1.tar.gz
(2.0 kB
view hashes)
Built Distribution
Close
Hashes for kolors-0.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2cfed0fca332818e1db900b8f91a5ddbc933f0b4d306507402a3b5391379586c |
|
MD5 | 1cd7883f2f8c42ff31fbc7d90e0e2508 |
|
BLAKE2b-256 | bfcd8c25ed588cc6e67a59c19f0773c18f8e6bd8a73925a53a9a968b546d684d |