The Printer package provides a simple way to print messages with ANSI colors and styles in Python.
Project description
Printer Package
The Printer
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 printer import Printer as p
# Print a standard message
p.standard("This is a standard message", style="bold")
# Print an error message
p.error("This is an error message", style="underline")
# Print an info message
p.info("This is an info message", style="italic")
# Print a warning message
p.warning("This is a warning message", style="blink")
# Print a success message
p.success("This is a success message", style="reversed")
# Print a debug message
p.debug("This is a debug message", style="hidden")
# Print a custom message
p.custom("This is a custom message", color="cyan", style="bold", prefix="Custom:")
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.2.tar.gz
(3.9 kB
view hashes)
Built Distribution
Close
Hashes for printstyler-0.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 148a40e07b4c9336fc3d8629eedd52c0e5dc3c16cd6c0627ac79da3eb1f6a59e |
|
MD5 | be0adbcf605486e7747e5bed7fb21b51 |
|
BLAKE2b-256 | f64f48de1c42de1a6eacb2f9f8eb28bc5676d2d133d2ab9d20b39d1745253f44 |