Skip to main content

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.

Metadata

Release files for ArtisanPrint 1.0.0

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

Source distribution (sdist)

Source distribution for ArtisanPrint 1.0.0
File Size Uploaded
ArtisanPrint-1.0.0.tar.gz 5.8 kB Details

Built distribution (wheel)

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

Total release size: 12.1 kB

Release files / ArtisanPrint-1.0.0.tar.gz

Download URL ArtisanPrint-1.0.0.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
dcf6e8f83bc631e3d5de30e048316367fea0409eeb7f1b7aa3ab6810e6fdb7be
BLAKE2b-256 checksum
How to use checksums
a5b103efffebc50e8c71cec5c9880933a928e39093d7beb007166aa380369f2a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.10.7

Release files / ArtisanPrint-1.0.0-py3-none-any.whl

Download URL ArtisanPrint-1.0.0-py3-none-any.whl
Size 6.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0e14b33302e74f9495e4b1ee323ebe9ca3f8501d17c594e7c015436bfc25d69e
BLAKE2b-256 checksum
How to use checksums
f7e97b19bbb869ed08584dec2a230d882c1ed1a7c35d8e8887e0cf8aa085304e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.10.7

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

0.0.3

2 release files

0.0.2

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