pastel-0.2.1


توضیحات

Bring colors to your terminal.
ویژگی مقدار
سیستم عامل -
نام فایل pastel-0.2.1
نام pastel
نسخه کتابخانه 0.2.1
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Sébastien Eustace
ایمیل نویسنده sebastien@eustace.io
آدرس صفحه اصلی https://github.com/sdispater/pastel
آدرس اینترنتی https://pypi.org/project/pastel/
مجوز MIT
Pastel: Bring colors to your terminal ##################################### Pastel is a simple library to help you colorize strings in your terminal. It comes bundled with predefined styles: * ``info``: green * ``comment``: yellow * ``question``: black on cyan * ``error``: white on red .. image:: https://raw.githubusercontent.com/sdispater/pastel/master/assets/screenshot.png Features ======== * Use predefined styles or add you own. * Disable colors all together by calling ``with_colors(False)``. * Automatically disables colors if the output is not a TTY. * Used in `cleo <https://github.com/sdispater/cleo>`_. * Supports Python **2.7+**, **3.5+** and **PyPy**. Usage ===== .. code-block:: python >>> import pastel >>> print(pastel.colorize('<info>Information</info>')) 'Information' # Green string by default >>> print(pastel.colorize('<fg=red;options=bold>This is bold red</>')) 'This is bold red' Installation ============ .. code-block:: pip install pastel


زبان مورد نیاز

مقدار نام
>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.* Python


نحوه نصب


نصب پکیج whl pastel-0.2.1:

    pip install pastel-0.2.1.whl


نصب پکیج tar.gz pastel-0.2.1:

    pip install pastel-0.2.1.tar.gz