Skip to main content

Color library with multiple features including colors, gradients, logging, and animations

Project description

[FORMAT OF THE READ ME IS AI BC IDK HOW TO DO ALL OF THE COLOR THINGS]

ColorKat

ColorKat is a Python package for creating colorful console applications with animations, gradients, and logging. It allows you to easily display text with colors, gradients, and animated effects in your terminal, while also supporting logging to files.

Features

  • Text Animations: Write text character by character, in columns, or in rows.
  • Colors: Add colored text using RGB values.
  • Gradients: Apply gradient colors to text with multiple built-in styles.
  • Logging: Log messages with levels like INFO, SUCCESS, WARNING, ERROR, and DEBUG.

Installation

pip install colorkat

Usage

from colorxkat.animate import Animate
from colorxkat.colors import Colors
from colorxkat.gradients import Gradient, Gradients
from colorxkat.loggers import Logs

logger = Logs(logging=True, filePath="file.log")

Animate.Write("Hello, ColorXKat!", speed=0.05)
Animate.LogWrite(logger, "Animated and logged text!", speed=0.05)

print(Colors.Add("This is red text!", Colors.Red))
print(Gradients.Apply("Gradient Text Example", Gradient.Rainbow))

Animations

  • Animate.Write(text, speed) - Animates text character by character
  • Animate.Column(text, speed) - Animates text column by column
  • Animate.Row(text, speed) - Animates text row by row
  • Animate.LogWrite(logger, text, speed) - Animate and log text

Colors

Use predefined colors or add your own using RGB tuples:

Colors.Red
Colors.Green
Colors.Blue

Gradients

Built in gradients include Rainbow, Sunset, Mint, Fire, Ocean, and many more. Apply gradients like this:

Gradients.Apply("Your gradient text", Gradient.Rainbow)

Logging

Create a logger:

logger = Logs(logging=True, filePath="example.log")
logger.Info("Information")
logger.Success("Success")
logger.Warning("Warning")
logger.Error("Error")
logger.Debug("Debug message")

Example

Run the examples.py file to see animations, colors, gradients, and logging in action:

python examples.py

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

colorkat-1.0.2.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

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

colorkat-1.0.2-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: colorkat-1.0.2.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.0

File hashes

Hashes for colorkat-1.0.2.tar.gz
Algorithm Hash digest
SHA256 bf389071473cf32a16b41e7e745919c06c71a0925c2087457701a5bfc06ad60f
MD5 4de8842e1d29f621c2fd9acaa5c2ddd7
BLAKE2b-256 415d17a0e756df1b1bccac1969280c488e1d29e9b360d0d6c8705245f9545ee2

See more details on using hashes here.

File details

Details for the file colorkat-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: colorkat-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.0

File hashes

Hashes for colorkat-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 dde5bb9ace23d1442162542331eb0d2b78fea28eb6bfccf6d0fc070e42cc7c1a
MD5 d9fdf5dfaf508924817d571adbc86a0b
BLAKE2b-256 eefaa9a58175b14a734eec65500ec47eb1471e2c36b06ec1f2bc2ab8f8e9ea95

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