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", style="dim")
# 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-1.0.0b0.tar.gz
(5.1 kB
view hashes)
Built Distribution
Close
Hashes for scprint-1.0.0b0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d34419f4a005887e50c03be043eb473b9e890199d3275ce60581f55cebc5bfb3 |
|
MD5 | 025cf0f4122b4eb59fd6d9ca65cef295 |
|
BLAKE2b-256 | c9a75ff3233cf94aa740c6723fddb49330b65ac3cce7929f49427b33e216e37f |