Skip to main content

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 PyColor.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 PyColor.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

pycolorator-0.1.2.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

PyColorator-0.1.2-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file pycolorator-0.1.2.tar.gz.

File metadata

  • Download URL: pycolorator-0.1.2.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for pycolorator-0.1.2.tar.gz
Algorithm Hash digest
SHA256 8bdab05b4d4e92337dcfe9a1b5a84563ecf5ca40c12a3d58f9a7dd605911701b
MD5 b2019619bdd354e4672fe1a2ed3d7037
BLAKE2b-256 7350e0642d17c77279fb2f3dfb78f582901e300b8743758e88739a319e752151

See more details on using hashes here.

File details

Details for the file PyColorator-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: PyColorator-0.1.2-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

Hashes for PyColorator-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 80893297d311ba9f97ff3197fda9fdab5a60f9371db35f17f5e37b67826c335a
MD5 69c6ce964221c7a42cc01da6c09c6792
BLAKE2b-256 e9a279dce423d7dbbc841407e4d9146ffc32f771eb51f0e2574af21230cc212b

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