Skip to main content

A Python library for customizable text printing in the terminal.

Project description

ArtisanPrint

ArtisanPrint is a Python library for printing text with customizable text styles, colors, and background colors. It provides a simple interface to enhance the appearance of printed text in the terminal.

Installation

To install ArtisanPrint, simply use pip:

pip install ArtisanPrint

Usage

Import the cprint function from the ArtisanPrint library and use it to print text with desired styles and colors.

Examples

Print Colored Text

from artisanprint import cprint

cprint("Error: Something went wrong", color="red")

Print Text with Background Color

from artisanprint import cprint

cprint("Warning: Proceed with caution", bg_color="yellow")

Print Text with Style

from artisanprint import cprint

cprint("Important Message", style="bold")

More Examples

from ArtisanPrint import cprint

# Print text with red color and bold style
cprint("Hello, world!", color="red", style="bold")

# Print text with green background color and italic style
cprint("Welcome to ArtisanPrint", bg_color="green", style="italic")

# Print text with custom RGB color and underlined style
cprint("Custom Color", color=(255, 128, 0), style="underlined")

# Print text with multiple styles and background color
cprint("Formatted Text", style="bold italic", bg_color="blue")

Notes

  • ANSI escape codes are used for text formatting. The availability and behavior of these codes may vary depending on the terminal or console.
  • You can specify text color and background color either by using color names or RGB tuples.
  • Text styles and color codes are case-insensitive.

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

ArtisanPrint-1.0.0.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

ArtisanPrint-1.0.0-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file ArtisanPrint-1.0.0.tar.gz.

File metadata

  • Download URL: ArtisanPrint-1.0.0.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.7

File hashes

Hashes for ArtisanPrint-1.0.0.tar.gz
Algorithm Hash digest
SHA256 dcf6e8f83bc631e3d5de30e048316367fea0409eeb7f1b7aa3ab6810e6fdb7be
MD5 dcd1ec6434f016064fd8fe743c9deb9c
BLAKE2b-256 a5b103efffebc50e8c71cec5c9880933a928e39093d7beb007166aa380369f2a

See more details on using hashes here.

File details

Details for the file ArtisanPrint-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ArtisanPrint-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0e14b33302e74f9495e4b1ee323ebe9ca3f8501d17c594e7c015436bfc25d69e
MD5 4829e73f57b0f00bc2ef0821f3292bb5
BLAKE2b-256 f7e97b19bbb869ed08584dec2a230d882c1ed1a7c35d8e8887e0cf8aa085304e

See more details on using hashes here.

Supported by

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