Skip to main content

None

Project description

SCPrint

(Simple Colored Print)

MIT Licence PyPi Version Python Version Downloads Per Week Issues Open

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()
stdout

Features

  • Control foreground and background color by setting color=, back_color= respectively.
  • Change brightness by setting style= to either dim, normal or bright | Default = style="bright"
  • Continue to change the object separator and line ending with sep= and end= | 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="")
stdout
from scprint import rainbow
rainbow("Multicolored Text!")
stdout

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


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)

Uploaded Source

Built Distribution

scprint-0.0.0.post3-py3-none-any.whl (4.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page