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.3.tar.gz (6.6 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.3-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pycolorator-0.1.3.tar.gz
  • Upload date:
  • Size: 6.6 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.3.tar.gz
Algorithm Hash digest
SHA256 29edc718fef77c2e6820760f1cfd17eec85a9298e1881cc4343c2066bf8dfe2f
MD5 e74a32118587a89fde73b76cef4c2be2
BLAKE2b-256 2b7b96566675d0e30941768e7389bc5216b5c0330d176f032b499f89c1d48b5a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyColorator-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 7.0 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ac8e86c48c325cef17ffa4e9fc16554024d4fd2397ed490538c5dd747f54a24f
MD5 86b04533e01eaf8a556d8c86b5475f23
BLAKE2b-256 e59cf043e17d66bffd59b0fa7046041e87e7f0134e1414edc8ed753ace574103

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