A Python module for text styling with color and gradient support
Project description
ColorAura
ColorAura is a Python module for text styling with color and gradient support.
Features
- Apply colors to text using ANSI escape codes.
- Create gradients with customizable start and end colors.
- Add text styles such as bold, italic, and strikethrough.
- Supports all standard ANSI colors.
- Hex color support for custom colors.
Installation
You can install ColorAura using pip:
pip install coloraura
Usage
Here's a simple example demonstrating how to use ColorAura to style text:
from coloraura import color, gradient, style
# Apply red color to text
red_text = color.style("Hello, ColorAura!", color='red')
print(red_text)
# Apply a blue-to-green gradient to text
gradient_text = gradient.style("Hello, Gradient!", gradient=('blue', 'green'))
print(gradient_text)
# Apply bold style to text
bold_text = style.style("Hello, Bold!", style='bold')
print(bold_text)
License
ColorAura is released under the GNU General Public License (GPLv3). See the LICENSE file for details.
Contributing
Contributions are welcome! If you encounter any issues or have suggestions for improvements, please open an issue on GitHub.
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
coloraura-1.0.2.tar.gz
(2.6 kB
view hashes)