c-print-1.0.1


توضیحات

Small python package for printing text in different colours and typography.
ویژگی مقدار
سیستم عامل -
نام فایل c-print-1.0.1
نام c-print
نسخه کتابخانه 1.0.1
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Simon Pfeifer
ایمیل نویسنده s.pfeifer@2012.ljmu.ac.uk
آدرس صفحه اصلی https://github.com/SimonPfeifer/cprint
آدرس اینترنتی https://pypi.org/project/c-print/
مجوز -
# cprint Small python package for printing text in different colours and typography. ### Installation pip install c-print ### Prerequisites You need to have a Python2.7+ or Python3+ installation with the following libraries: ### Usage The `cprint()` function simply adds one keyword argument, `c`, to the python `print()` function. This extra keyword argument can change the output of `print()` to one colour and any number of given styles. Colours are given in lower case and styles in upper case. Any other keyword arguments are passed on to `print()`. | Character | Colour | | ---------- | --------------- | | 'k' | black | | 'r' | red | | 'g' | green | | 'y' | yellow | | 'b' | blue | | 'm' | magenta | | 'c' | cyan | | 'w' | white | | Character | Style | | ---------- | --------------- | | 'B' | bold | | 'D' | dark | | 'I' | italic | | 'U' | underline | | 'F' | flash | | 'R' | reverse colour | | 'C' | crossed through | Example: ```python from cprint import cprint cprint('Hello World!', c='rB') cprint('Hello World!', 'Monty Python', c='bUI', end='!') ```


نحوه نصب


نصب پکیج whl c-print-1.0.1:

    pip install c-print-1.0.1.whl


نصب پکیج tar.gz c-print-1.0.1:

    pip install c-print-1.0.1.tar.gz