The Printer package provides a simple way to print messages with ANSI colors and styles in Python.
Project description
Printer Package
The printstyler
package provides a simple way to print messages with ANSI colors and styles in Python.
Installation
You can install the package using pip:
pip install printstyler
## Available Colors
- black
- red
- green
- yellow
- blue
- magenta
- cyan
- white
## Available Styles
- bold
- faint
- italic
- underline
- blink
- reversed
- hidden
#Usage
from printstyler import Printer as pr
# Print a standard message
pr.standard("This is a standard message", style="bold")
# Print an error message
pr.error("This is an error message", style="underline")
# Print an info message
pr.info("This is an info message", style="italic")
# Print a warning message
pr.warning("This is a warning message", style="blink")
# Print a success message
pr.success("This is a success message", style="reversed")
# Print a debug message
pr.debug("This is a debug message", style="hidden")
# Print a custom message
pr.custom("This is a custom message", color="white", style="bold", prefix="Custom:")
![example](image.png)
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
printstyler-0.2.3.tar.gz
(3.9 kB
view hashes)
Built Distribution
Close
Hashes for printstyler-0.2.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e94b25e33badb1579165a254750e95746ec83fb13e45d356b9795d22784367a4 |
|
MD5 | 1c5bc6e2b2b04bd492e0452a87176e7c |
|
BLAKE2b-256 | 68e26044119a077f5ce0e2b7c376962971ae18dd3ecffcfacf56718a39b1afc1 |