Skip to main content

A Python library for terminal text colorization using ANSI escape codes.

Project description

Cansii

Cansii is a Python library that enables easy text colorization in the terminal using ANSI escape codes. It provides support for a variety of colors, styles, and combinations to enhance terminal output.

Installation

There's no specific installation required. Use the provided class methods to format your text with ANSI escape codes for display in the terminal.

Usage

from cansii import Cansii

# Applying colors
print(Cansii.red("This is red text"))
print(Cansii.blue("This is blue text"))

# Applying styles
print(Cansii.bold("This is bold text"))
print(Cansii.underline("This is underlined text"))

# Applying combinations
print(Cansii.red_bold("This is red and bold text"))
print(Cansii.green_underline("This is green and underlined text"))

License

This project is licensed under the GNU General Public License v3.0. View the LICENSE file for further details.

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

cansii-1.2.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cansii-1.2-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file cansii-1.2.tar.gz.

File metadata

  • Download URL: cansii-1.2.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for cansii-1.2.tar.gz
Algorithm Hash digest
SHA256 1cfc0463a6c61be6c8a151c38bfaf8ce999d778540916aaf3f6b96dfc5b51951
MD5 da00d49d16140bee01da3bde8381cc88
BLAKE2b-256 7f9fe3213b4d28941dbca9cf53017a661d8b94cb5895d223a0e51ea9caccb0e1

See more details on using hashes here.

File details

Details for the file cansii-1.2-py3-none-any.whl.

File metadata

  • Download URL: cansii-1.2-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for cansii-1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f61f58ecb6afb3c2f0dd22d3a3c44d0c4675eeddeabf60db50954597d9df1542
MD5 ef0987bd255718dcc3b4b727131cfe54
BLAKE2b-256 f1d5200247d446d1512c07170bc10da5699ede8a7c349c88bf5d70dc3ef1db91

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