Skip to main content

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
![Demo Output](https://raw.githubusercontent.com/KSimpson5624/chalkboard/main/assets/demo.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

chalkboard-1.0.1.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.

chalkboard-1.0.1-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file chalkboard-1.0.1.tar.gz.

File metadata

  • Download URL: chalkboard-1.0.1.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

Hashes for chalkboard-1.0.1.tar.gz
Algorithm Hash digest
SHA256 363a98679393ebba7d638f9151f49f6c3e35006757d4a1ce37f81f32a421b820
MD5 aba495a9bc98405ce3c0a3df19d645d1
BLAKE2b-256 77b50d6304cf3647550a50e44acfde59a3a40388fb539e0423417981cb6dbc34

See more details on using hashes here.

File details

Details for the file chalkboard-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: chalkboard-1.0.1-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

Hashes for chalkboard-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7f60e9f55b2d3a08affb01e7b1a013414388b07cccd889893e89e6aa065030e6
MD5 d607a87803541e6d6fb88f196c5c17ff
BLAKE2b-256 459a1d0786a76ec0ef10d48d9f6de6e4d9d4ffed29752f3669982e5a8ad694ea

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