A lightweight python library to easily colorate text
Project description
PyColorator
A lightweight python library to easily colorate text
Features
- Support for multiple color gradients.
- Various gradient directions (horizontal, vertical, diagonal, etc.).
- Easy integration with terminal applications.
- Customizable wave effect for dynamic visual output.
Installation
You can install the package via pip:
pip install PyColorator
Usage
Basic Usage
from PyColorator.pycolor import Colorate, ColorGradients, Direction
# Initialize the Colorate system
colorate = Colorate()
# Apply a gradient to a simple text
text = "Hello, World!"
gradient_text = colorate.gradient_text(text, ColorGradients.RED_GRADIENTS)
print(gradient_text)
Using two gradients
from PyColorator.pycolor import Colorate, ColorGradients, Direction
colorate = Colorate()
# Apply a gradient from red to blue
text = "Gradient Text"
gradient_text = colorate.gradient_text(text, ColorGradients.RED_GRADIENTS, ColorGradients.BLUE_GRADIENTS)
print(gradient_text)
Contributing
If you'd like to contribute to this project, please fork the repository and submit a pull request. For major changes, please open an issue first to discuss what you would like to change.
License
This project is licensed under the MIT License - see the LICENSE file for 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
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 pycolorator-0.1.1.tar.gz.
File metadata
- Download URL: pycolorator-0.1.1.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
689f27d654919b692dab04b0339d4b7c78e155f2e381a2f2d053a132acfc3888
|
|
| MD5 |
bdc9a5bbab0e999e2ea389d3957d9918
|
|
| BLAKE2b-256 |
9c7b987c181fef8936ef4a30ebe6803d1515c0629df30a1a67e04153eac6166f
|
File details
Details for the file PyColorator-0.1.1-py3-none-any.whl.
File metadata
- Download URL: PyColorator-0.1.1-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c860756be25f5bcddcea585b320e9ec95b2a61b974b8cb17bb8c7c52a2c8d118
|
|
| MD5 |
9a7db73d7de63d3e3e56f5e05b51a006
|
|
| BLAKE2b-256 |
cfa5d592cd4604af97267ff8f5faf006f8d52c6f924178df22808e62570e8806
|