Skip to main content

ChalkCli

ChalkCli is a Python package for terminal text styling and coloring. Add vibrant colors, formatting, and animations to your terminal output with ease.

Installation

You can install ChalkCli using pip:

pip install ChalkCli

Usage

from ChalkCli import ChalkCli

# Example usage
text = "Hello, ChalkCli!"
styled_text = ChalkCli.format_text(text, styles=[ChalkCli.BOLD, ChalkCli.BLUE])
print(styled_text)

Features

  • Stylish text formatting
  • Colorful output for better visibility
  • Text animations for a dynamic terminal experience
Function Description Example Usage Arguments
format_text Formats text with styles and color ChalkCli.format_text("Hello", styles=[ChalkCli.BOLD, ChalkCli.RED]) text (str), styles (list of str), color (str)
colorized_banner Creates a colorized banner ChalkCli.colorized_banner("Welcome", styles=[ChalkCli.BOLD], color=ChalkCli.BLUE) text (str), styles (list of str), color (str), banner_char (str)
rainbow_text Creates rainbow-colored text ChalkCli.rainbow_text("Hello, Rainbow!") text (str)
create_table Creates a table with a header and data ChalkCli.create_table(["Name", "Age"], [["Alice", 25], ["Bob", 30]]) header (list of str), data (list of lists)
typewriter_text Outputs text with a typewriter effect ChalkCli.typewriter_text("Hello, Typewriter!") text (str), delay (float)
pulsating_text Outputs text with a pulsating effect ChalkCli.pulsating_text("Pulsating") text (str), period (float)
blinking_text Outputs text with a blinking effect ChalkCli.blinking_text("Blinking") text (str), blink_duration (float)
rotating_text Outputs text with a rotating effect ChalkCli.rotating_text("Rotating", rotations=3) text (str), rotations (int)
countdown Displays a countdown ChalkCli.countdown(5) seconds (int)
progress_bar Displays a progress bar ChalkCli.progress_bar(0.75) progress (float), length (int)
random_color_text Outputs text with random colors ChalkCli.random_color_text("Random Colors") text (str)
scrolling_text Scrolls text horizontally ChalkCli.scrolling_text("Scrolling Text", scroll_speed=0.1) text (str), scroll_speed (float)
center_text Centers text within a specified width ChalkCli.center_text("Centered Text", width=50) text (str), width (int)
fading_text Outputs text with a fading effect ChalkCli.fading_text("Fading Text", fade_duration=5) text (str), fade_duration (float)

Examples

Rainbow Text

from ChalkCli import ChalkCli

text = "Rainbow Text"
rainbow_text = ChalkCli.rainbow_text(text)
print(rainbow_text)

Table Creation

from ChalkCli import ChalkCli

header = ["Name", "Age", "Country"]
data = [
    ["Alice", "25", "USA"],
    ["Bob", "30", "Canada"],
    ["Charlie", "22", "UK"],
]

table = ChalkCli.create_table(header, data)
print(table)

Repository Views Views

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

Metadata

Release files for ChalkCli 0.1.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 ChalkCli 0.1.0
File Size Uploaded
ChalkCli-0.1.0.tar.gz 6.4 kB Details

Release files / ChalkCli-0.1.0.tar.gz

Download URL ChalkCli-0.1.0.tar.gz
Size 6.4 kB
Tags Source
SHA-256 checksum
How to use checksums
a22ed0721e92383258aa8e4366cbada25807a19d2e7445d1da8c1f538f4fc92d
BLAKE2b-256 checksum
How to use checksums
1bd3deacc52b3a871937e46e53e51e6b6f70b4e03c1977a1f7129fcfd9597b2e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.5

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 release file

0.0.1

1 release file

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