Printkit is an easy to use python package which contains various tools that enable you to have a distinct and good looking outputs.
Project description
Printkit - Make your outputs look great
Printkit is an easy to use python package which contains various tools that enable you to have a distinct and good looking outputs.
Features:
- Change Text Colors
- Change Background Colors
Still working on making the program better with additional features. :blush:
Installation
Install and update using pip
pip install printkit
How to use printkit
Imports
from printkit import *
Usage
cprint.[colorname]([string]) #change text color
bgcolor.[colorname]([string]) #change background color
#custom options
cprint.custom([string],color=[ansi color code])
bgcolor.custom(color=[ansi color code])
Miscellaneous Methods
import printkit
#To get printkit version
printkit.version()
#To get the available colornames
printkit.colors()
For changing output color
Code
#To print 'Success' in green text color
cprint.green('Success')
Output
For changing background color of terminal/console
Code
#Change the background color to cyan
bgcolor.cyan()
#Print with black text
cprint.black('Hello World')
#Make the background color to default
bgcolor.default()
Output
Click here to see the available colors
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
printkit-0.1.3.tar.gz
(3.9 kB
view hashes)