Skip to main content

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)

Release files for printstyler 0.2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for printstyler 0.2.3
File Size Uploaded
printstyler-0.2.3.tar.gz 3.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for printstyler 0.2.3
File Interpreter ABI Platform
printstyler-0.2.3-py3-none-any.whl Python 3 none any Details

Total release size: 8.3 kB

Release files / printstyler-0.2.3.tar.gz

Download URL printstyler-0.2.3.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
df6f9ab6225b5b2122f4f91d589c6358bb278aac160b87d40cdee85a6b68d48a
BLAKE2b-256 checksum
How to use checksums
254b31c2e5c5aa9677bb416aa83164d479244a5447d789c5c14e523c3d6ad35a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.12.3

Release files / printstyler-0.2.3-py3-none-any.whl

Download URL printstyler-0.2.3-py3-none-any.whl
Size 4.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e94b25e33badb1579165a254750e95746ec83fb13e45d356b9795d22784367a4
BLAKE2b-256 checksum
How to use checksums
68e26044119a077f5ce0e2b7c376962971ae18dd3ecffcfacf56718a39b1afc1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

0.2.3 This release

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page