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!")
Legal Notice
This module uses the colorama module as a dependency, this module is effectively a different way of using colorama.
SCPrint is in no way associated or endorced with/by colorama.
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.post3.tar.gz
(3.3 kB
view hashes)
Built Distribution
Close
Hashes for scprint-0.0.0.post3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4da530465a96b61d3462e1bbffa2cba52dd23fb6cf28a6d6192fabd903e0b280 |
|
MD5 | 53024f2fa6737e193e7e798350b53ac6 |
|
BLAKE2b-256 | 0ce1390b2093530e90d3fc25f38657bcf99595d867c4c056e5c303ed37c636e7 |