Skip to main content

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.

Metadata

Release files for cansii 1.2

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

Source distribution (sdist)

Source distribution for cansii 1.2
File Size Uploaded
cansii-1.2.tar.gz 3.2 kB Details

Built distribution (wheel)

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

Total release size: 7.2 kB

Release files / cansii-1.2.tar.gz

Download URL cansii-1.2.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
1cfc0463a6c61be6c8a151c38bfaf8ce999d778540916aaf3f6b96dfc5b51951
BLAKE2b-256 checksum
How to use checksums
7f9fe3213b4d28941dbca9cf53017a661d8b94cb5895d223a0e51ea9caccb0e1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.6

Release files / cansii-1.2-py3-none-any.whl

Download URL cansii-1.2-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f61f58ecb6afb3c2f0dd22d3a3c44d0c4675eeddeabf60db50954597d9df1542
BLAKE2b-256 checksum
How to use checksums
f1d5200247d446d1512c07170bc10da5699ede8a7c349c88bf5d70dc3ef1db91
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.6

Release history Release notifications | RSS feed

This release

1.2 This release

2 release files

1.0

2 release files

0.2

2 release files

0.1

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