colorprint-0.1
توضیحات
Python module to print in color using py3k-style print function
| ویژگی | مقدار |
|---|---|
| سیستم عامل | POSIX :: Linux |
| نام فایل | colorprint-0.1 |
| نام | colorprint |
| نسخه کتابخانه | 0.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Aleksey Rembish |
| ایمیل نویسنده | alex@rembish.ru |
| آدرس صفحه اصلی | https://github.com/rembish/colorprint |
| آدرس اینترنتی | https://pypi.org/project/colorprint/ |
| مجوز | BSD |
Module colorprint
~~~~~~~~~~~~~~
Python module to print in color using py3k-style print function. It uses
funny hack, which allow to create print function instead standard print
routine and give it some "black" magic.
Print function is like imported for __future__, but has three additional
parameters: color (foreground of text output), background (it's background)
and format (bold, blink and so on).
You can read more at __future__.print_function documentation.
Usage example
-------------
>>> from __future__ import print_function
>>> from colorprint import *
>>> print('Hello', 'world', color='blue', end='', sep=', ')
>>> print('!', color='red', format=['bold', 'blink'])
Hello, world!
^-- blue ^-- blinking, bold and red
:copyright: 2012 Aleksey Rembish
:license: BSD
نحوه نصب
نصب پکیج whl colorprint-0.1:
pip install colorprint-0.1.whl
نصب پکیج tar.gz colorprint-0.1:
pip install colorprint-0.1.tar.gz