Skip to main content

EasyGradients 🌈

Icon

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.

Metadata

Release files for easygradients 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for easygradients 0.1.2
File Size Uploaded
easygradients-0.1.2.tar.gz 1.1 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for easygradients 0.1.2
File Interpreter ABI Platform
easygradients-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 1.1 MB

Release files / easygradients-0.1.2.tar.gz

Download URL easygradients-0.1.2.tar.gz
Size 1.1 MB
Tags Source
SHA-256 checksum
How to use checksums
e7f1471b6e4983d7308069e66ef962be5b312390cfac74d4f53fba5f4b51d7e3
BLAKE2b-256 checksum
How to use checksums
4eaefc074cc40996dc98bd7b7c454ef272c01e7a84caa08b21386ba0072440b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / easygradients-0.1.2-py3-none-any.whl

Download URL easygradients-0.1.2-py3-none-any.whl
Size 6.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cc896c6b178c768d2a685f2b363638adb67c875d1d5f9acb4e892d20b99d2eca
BLAKE2b-256 checksum
How to use checksums
e3c157ce62dd7fc8445fe19000744933ce1a8aaa09486f43943c46dd31250fbe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page