🌈 Terminal string styling
Project description
style is a simple terminal string styling library. Its API is a port of the popular chalk module for javascript.
Install
$ pip install style
Usage
import style
print(style.red.bold('Hello world!'))
API
style.style*[.style](*objects, sep=' ')
Chain styles and call the last one as a method with an argument. Order doesn’t matter, and later styles take precedence in case of a conflict, e.g. style.red.yellow.green is equivalent to style.green.
Multiple arguments will be separated by sep, a space by default.
Styles
Modifiers |
Colors |
Background 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 Distribution
Hashes for style-1.0.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c82005e694b7c2a442fc3cbe608adac5873be2c0086c794af11d47052913b7b |
|
MD5 | c16154ee97cf3ab335aa34fcf6c3f33d |
|
BLAKE2b-256 | 51013a398cd1498568267a25e6612094122fa92430fa7f8e8cf22b314ed7d688 |