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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cansii-1.2.tar.gz | 3.2 kB | Without provenance | Details for cansii-1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cansii-1.2-py3-none-any.whl | Python 3 | none | any | Details for cansii-1.2-py3-none-any.whl |
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
|
Security for cansii 1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.