A very good library to make your terminal very colorful and nice. easy to use also.
Project description
EasyGradients 🌈
Hello friend! I made this library because I love colors in my terminal. It is very easy to use and even a small child can use it. No complex coding here, just simple things that work like magic!
How to Install this?
Just type this simple command in your black screen (terminal):
pip install easygradients
How to use it? (Examples for you)
First you must bring the library in your code:
import easygradients as eg
1. Simple Colors
If you want to make text red or green, just do this:
# Use hex code like this
print(eg.color("I am red color!", "#FF0000"))
# Or use simple numbers (RGB)
print(eg.color("I am green color!", (0, 255, 0)))
2. Beautiful Gradients
Gradient means many colors mixing together. It looks very nice!
# Mix red and blue
print(eg.gradient("Mixing colors wow!", ["#FF0000", "#0000FF"]))
# You can even use many colors
print(eg.gradient("So many colors!", ["#FF0000", "#FFFF00", "#00FF00", "#0000FF"]))
3. Using Presets (Shortcuts)
I have already made some nice color sets for you. You don't need to find hex codes!
print(eg.gradient("Sunset is looking good", "sunset"))
print(eg.gradient("Ocean is blue", "ocean"))
print(eg.gradient("I am hacker in matrix", "matrix"))
4. Background Colors
You can even change the back side of the text:
print(eg.bg_color("Black background here", "#000000"))
print(eg.bg_gradient("Gradient background is crazy!", ["#FF5F6D", "#FFC371"]))
5. Styling Text
Make it bold or italic or draw line under it:
print(eg.style("I am very BOLD", "bold"))
print(eg.style("I am leaning (italic)", "italic"))
print(eg.style("Line under me", "underline"))
6. Special Tricks
Some more things I added because I was bored:
# Rainbow!
print(eg.rainbow("FULL RAINBOW TEXT!!!"))
# Type like a movie hacker
eg.typewriter("System is hacking now... please wait...")
# Put text in the middle
print(eg.center("I am sitting in the middle"))
# Put text inside a box
print(eg.box("Special Message for you", border_col="gold"))
7. Random (If you are lazy)
If you can't choose color, let the computer choose:
# Computer will pick anything!
my_luck = eg.random(show_info=True)
print(eg.gradient("I don't know what color this is!", my_luck))
# Ask for random preset only
preset_luck = eg.random(what_you_want='preset', show_info=True)
print(eg.gradient("Random preset used!", preset_luck))
All my Presets:
rainbow, sunset, ocean, morning, matrix, fire, night, candy, neon, cool, hot, simple, grass, sky, blood, gold.
License
It is MIT license. You can use it anywhere you want, I don't care! Just enjoy the colors.
Made with love by DraxonV1.
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 easygradients-0.1.2.tar.gz.
File metadata
- Download URL: easygradients-0.1.2.tar.gz
- Upload date:
- Size: 1.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e7f1471b6e4983d7308069e66ef962be5b312390cfac74d4f53fba5f4b51d7e3
|
|
| MD5 |
a46e861e2424a893b063cf72400a013a
|
|
| BLAKE2b-256 |
4eaefc074cc40996dc98bd7b7c454ef272c01e7a84caa08b21386ba0072440b6
|
File details
Details for the file easygradients-0.1.2-py3-none-any.whl.
File metadata
- Download URL: easygradients-0.1.2-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cc896c6b178c768d2a685f2b363638adb67c875d1d5f9acb4e892d20b99d2eca
|
|
| MD5 |
c2f1a5a12b21e2039ce7e2db607dd968
|
|
| BLAKE2b-256 |
e3c157ce62dd7fc8445fe19000744933ce1a8aaa09486f43943c46dd31250fbe
|