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 colorkat.animate import Animate
from colorkat.colors import Colors
from colorkat.gradients import Gradient, Gradients
from colorkat.loggers import Logs
logger = Logs(logging=True, filePath="file.log")
Animate.Write("Kitties", speed=0.05)
Animate.Wave("Kitties", 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 characterAnimate.Column(text, speed)- Animates text column by columnAnimate.Row(text, speed)- Animates text row by rowAnimate.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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file colorkat-1.1.0.tar.gz.
File metadata
- Download URL: colorkat-1.1.0.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2071ac62e642aec485fd8ecd430831fa03f017b4b61681442048d1bbdbd9edb9
|
|
| MD5 |
1ef955ae7f0f3695a267cf8281a503ad
|
|
| BLAKE2b-256 |
1d13edc98a0de4d12cc24a8da71d25cdd8e8ae3e3a004fa224c40900ebf26d05
|
File details
Details for the file colorkat-1.1.0-py3-none-any.whl.
File metadata
- Download URL: colorkat-1.1.0-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f2dd777953eda0ee91079db0fcd3a9f8b4c7e7593d803811bf59f66b7717a493
|
|
| MD5 |
36d81a549a626eb51c5920bb0a9da194
|
|
| BLAKE2b-256 |
b15ec705af9b21294225388af0618e3fb257b8fa6fd4825dcaaa69ab7cbaaca6
|