Colored text printing library for the terminal.
Project description
colorsx
🖌 colorsx is a Python library that allows you to use colors in terminal output.
Users can optionally define an alias (shortcut) for easier usage.
🚀 Installation
To install via PyPI:
pip install colorsx
For local installation:
pip install dist/colorsx-0.1.0-py3-none-any.whl
📌 Usage
1️⃣ Usage Without an Alias
from colorsx import colorsx
print(colorsx.blue("This is a blue-colored text."))
print(colorsx.red("This is a red-colored text."))
2️⃣ Usage With an Alias
from colorsx import ColorsX
c = ColorsX(alias="c") # Defining an alias
print(c.green("This is a green-colored text."))
An alias can also be set later:
from colorsx import colorsx
colorsx.set_alias("c")
print(c.yellow("This is a yellow-colored text."))
🎨 Supported Colors
redgreenyellowbluemagentacyanwhitereset
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
colorsx-0.1.0.tar.gz
(1.6 kB
view details)
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 colorsx-0.1.0.tar.gz.
File metadata
- Download URL: colorsx-0.1.0.tar.gz
- Upload date:
- Size: 1.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ca26028d440e6adbd00c013e34ea796e85ebce79d5e7d243fd633ec73fd1346e
|
|
| MD5 |
a7eccf11448aa331d772c304e02661db
|
|
| BLAKE2b-256 |
acc705a04bc5ed925009ed1a5483a6ac6278beda5f157405ac786983e1c39d20
|
File details
Details for the file colorsx-0.1.0-py3-none-any.whl.
File metadata
- Download URL: colorsx-0.1.0-py3-none-any.whl
- Upload date:
- Size: 1.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9890b0c385ab1a7376126fe0df9514ea2a614ead0b9181c9504c7e755dfde4f0
|
|
| MD5 |
7dc9b2c1abd41160d572c8580d7d4d9b
|
|
| BLAKE2b-256 |
99bc319dcf56547edc420e05a166cfd5b954884a0f3aeb35f9fda0af7977efc0
|