Skip to main content

A very good library to make your terminal very colorful and nice. easy to use also.

Project description

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.

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

easygradients-0.1.1.tar.gz (1.1 MB view details)

Uploaded Source

Built Distribution

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

easygradients-0.1.1-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file easygradients-0.1.1.tar.gz.

File metadata

  • Download URL: easygradients-0.1.1.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

Hashes for easygradients-0.1.1.tar.gz
Algorithm Hash digest
SHA256 a5815a2e7b988a7ececf7d7bff7e4616927c838babd117d40755092eb647eaf7
MD5 240fe7ec14f18348a2609795d7eb1bf6
BLAKE2b-256 e1c8c2553717e2d069a20eb57fd1801280764f1642bb8e2109fdd853c7b4fe6e

See more details on using hashes here.

File details

Details for the file easygradients-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: easygradients-0.1.1-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

Hashes for easygradients-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fa01398a24fe15a2c52243485019d9584bdc232e067712fa7977e4a66d2733cc
MD5 9b4e6aa3934fc69c8dddcc41959e8d21
BLAKE2b-256 d6e188c79c0045f3fd2877a14ec626a61dd5059ff9e764317ba23e05c9f77b0d

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