Skip to main content

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


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 details)

Uploaded Source

File details

Details for the file coloraura-1.0.2.tar.gz.

File metadata

  • Download URL: coloraura-1.0.2.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.12.1

File hashes

Hashes for coloraura-1.0.2.tar.gz
Algorithm Hash digest
SHA256 ac586d1fdf11a8a66cb893b6e94f4475d92fdaed6295052429a97638a5f19721
MD5 c2073fcf4260a9f03ecc8dc885dfcda2
BLAKE2b-256 666c0b8b5ce5d6f3de64314e3444d5b5e0a959960001702d2907d9ddd7af1d79

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page