Text styling with many colors and effects
Project description
Chalkboard
"Chalkboard" is a utility package that provides advanced string formatting and ANSI colors.
Top Features
- Rich text formatting (all ANSI styles and colors)
- Supports list of default colors as well as RGB and Hex colors.
- Easy and simple syntax
- Seemless integration with Python CLI tools
- Fully tested with pyest
Installation
pip install chalkboard
Usage
There are several options to choose from.
from chalkboard import RichText
Import a pre-initialized class for your convenience
from chalkboard import rt
Import specific functions. These are just a few examples
from chalkboard import colorize, error, warn, ok, italicize
Quick Examples
from chalkboard import rt
print(rt.colorize(text='Hello world', color='brightgreen'))
print(rt.error(message='ERROR: Task Failed'))
print(f'{rt.blue}Hello{rt.reset})
print(rt.style(text='This is bold, italized, and red', color='red', bold=True, italic=True))
print(rt.style(text='This is bold and using RGB', bold=True, r=247, g=5, b=227))
Screenshot of some possible output
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file chalkboard-1.0.2.tar.gz.
File metadata
- Download URL: chalkboard-1.0.2.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.13.0 Darwin/24.5.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2b00903e6480ff4a27be97c29b361924049bcaafab91bf21db38a8343128e7ee
|
|
| MD5 |
8701a57ecc0526120cba71ad5c17539d
|
|
| BLAKE2b-256 |
7a2553c2ecb234d10f574bbef90f9aaecc671e126e66286dcb84e82ef9b36ab7
|
File details
Details for the file chalkboard-1.0.2-py3-none-any.whl.
File metadata
- Download URL: chalkboard-1.0.2-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.13.0 Darwin/24.5.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4dd27c5b06dd83439449096db542770c37a245274ee5338feece9fe2ed710d97
|
|
| MD5 |
736b7eaba69ba818d68ae822adb08805
|
|
| BLAKE2b-256 |
a48bc8ef4fe59ce6a17233c8d5e2a8abd0d47f863bc11f8153119125727caf25
|