None
Project description
SCPrint
(Simple Colored Print
)
Description
Comming Soon...
Installation
$ python -m pip install scprint
Usage
Style | Dim |
Normal |
Bright |
||||||
Color | White |
Red |
Yellow |
Green |
Cyan |
Blue |
Magenta |
Black |
Reset |
# To override the built-in print function use (Recommended):
from scprint import print
print("Hello World!", color="cyan")
# The print function will still work normally without color:
print("Hello World!")
# To retain the built-in print function use:
from scprint import print as newFunction
newFunction("Hello World!", color="cyan")
# To create multicolored (rainbow) text use:
from scprint import rainbow
rainbow("Multicolored Text")
Demo
from scprint import demo
demo()
Features
- Control foreground and background color by setting
color=
,back_color=
respectively. - Change brightness by setting
style=
to eitherdim
,normal
orbright
| Default =style="bright"
- Continue to change the object separator and line ending with
sep=
andend=
| Default =sep=" "
,end="\n"
- Create multicolored text using
scprint.rainbow()
Examples
from scprint import print
print("Hello", color="red", back_color="blue", end=" ")
punctuation = "!"
print("World", punctuation, color="blue", back_color="red", sep="")
from scprint import rainbow
rainbow("Multicolored Text!")
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
scprint-0.0.0.post0.tar.gz
(3.2 kB
view hashes)
Built Distribution
Close
Hashes for scprint-0.0.0.post0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d43a1142efc9849af2f97118bb8e5c394dc6beaca7e0ed7ea7b267a5348fbe47 |
|
MD5 | 153a510dc71995dec66be72ac389a716 |
|
BLAKE2b-256 | 5e3b60aff4b67ddcc9915f7f2c8f9e4008ffc0adb0229b20b1072256f6e089fc |