Skip to main content

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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

printstyler-0.2.3-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file printstyler-0.2.3.tar.gz.

File metadata

  • Download URL: printstyler-0.2.3.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.3

File hashes

Hashes for printstyler-0.2.3.tar.gz
Algorithm Hash digest
SHA256 df6f9ab6225b5b2122f4f91d589c6358bb278aac160b87d40cdee85a6b68d48a
MD5 acba318d7af04464f3771c2d0653c10b
BLAKE2b-256 254b31c2e5c5aa9677bb416aa83164d479244a5447d789c5c14e523c3d6ad35a

See more details on using hashes here.

File details

Details for the file printstyler-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: printstyler-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.3

File hashes

Hashes for printstyler-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e94b25e33badb1579165a254750e95746ec83fb13e45d356b9795d22784367a4
MD5 1c5bc6e2b2b04bd492e0452a87176e7c
BLAKE2b-256 68e26044119a077f5ce0e2b7c376962971ae18dd3ecffcfacf56718a39b1afc1

See more details on using hashes here.

Supported by

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