Skip to main content

A lightweight python library to easily colorate text

Project description

PyColorate

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 PyColorate

Usage

Basic Usage

from PyColorate.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 PyColorate.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.0.tar.gz (6.3 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.0-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pycolorator-0.1.0.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

Hashes for pycolorator-0.1.0.tar.gz
Algorithm Hash digest
SHA256 31ceb54c14cdf2fed38b6e63c8323f57c4a0c4ffa601e4d2a9f9e3e02fa259c3
MD5 a9103accdab857711189ac13868aeacd
BLAKE2b-256 57f47ca67179a9f3b7456ea95872ef474ea31bfc1fd0cbc4cee663102f14201d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyColorator-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7d94a4c43e8265da86a06e4bcb40057fad648a12f9fecc57b94b4b8b29ef8e10
MD5 ae22196ece33a31a7e2d712351943791
BLAKE2b-256 214dd005fc4c54b3a4bc123b6652e7bc7ae4da270eef179bf106502189fba757

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