Swag up your shell output with escape code magic!
Project description
Swag
Color your shell output with escape code magic.
Installation
pip install swag
Usage
usage: swag [-h] [-c COLOR] [-t TYPE] text positional arguments: text the text to prettyEcho optional arguments: -h, --help show this help message and exit -c COLOR, --color COLOR default = white - which color to format the text in : black|red|green|yellow|blue|purple|cyan|white -t TYPE, --type TYPE default = normal - format the string with either: norm al|underline|background|bold|intense|intenseBold|inten seBackground
Raw Usage
Use from code
from swag import colors print colors.COLORS["red"], "This will be red"
Installation
from swag import createFolders
This will install all the escape codes to the ~/.colors folder.
Now you can use the colors directly from the console via:
echo $(cat ~/.colors/blue.txt) This will be blue
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
swag-1.0.0.tar.gz
(4.4 kB
view hashes)