clicolors-0.2
توضیحات
A simple Python module to colorize your Linux terminal
| ویژگی | مقدار |
|---|---|
| سیستم عامل | POSIX :: Linux |
| نام فایل | clicolors-0.2 |
| نام | clicolors |
| نسخه کتابخانه | 0.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Krzysztof Gorzynski |
| ایمیل نویسنده | gorzynskikrzysztof@gmail.com |
| آدرس صفحه اصلی | https://github.com/gorzk/clicolors.git |
| آدرس اینترنتی | https://pypi.org/project/clicolors/ |
| مجوز | MIT |
**clicolors - Command Line Interface::Colors**
Usage:
>>> from clicolors import colorize
Example 1
>>> print colorize('Example text 1', fg='blue',bg='red',attr='bold')
Example 2
>>> print colorize('Example text 2', 'blue','red','bold')
Example 3
>>> print colorize('Example text 3', fg='yellow')
Example 4
>>> print colorize('Example text 4', 'yellow')
Example 5
>>> print colorize('Example text 5', bg='green')
Example 6
>>> print colorize('Example text 6',attr='underline')
Example 7
>>> print colorize('Example text 6',bg='cyan',attr='underline',fg='black')
Example: clicolors Demo
>>> from clicolors import colorize, COLORS, ATTRIBUTES
>>> print colorize('clicolors : A simple Python module to colorize your Linux terminal',fg='black',bg='white',attr='underline')
>>> print ('Foreground: '+' '.join([colorize(color, fg=color) for color in COLORS]))
>>> print ('Background: '+' '.join([colorize(color, bg=color) for color in COLORS]))
>>> print ('Attributes: '+' '.join([colorize(attributes, attr=attributes) for attributes in ATTRIBUTES]))
نحوه نصب
نصب پکیج whl clicolors-0.2:
pip install clicolors-0.2.whl
نصب پکیج tar.gz clicolors-0.2:
pip install clicolors-0.2.tar.gz