Skip to main content

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


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.0.tar.gz (5.7 kB 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.0-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: easygradients-0.1.0.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for easygradients-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8a631386b7752b2644e794a037cd8b89a78b728f43371a5f0c650edaca14b8d8
MD5 ca651f0345d9baa0cb87f6f4910ce0dc
BLAKE2b-256 edbacbced55659da924e094078d7d4f1f6c8914d073c897197ef4eee848fa04a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: easygradients-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e125eab10782cbf85b92f635c6953f17d3916a99dccb87e675e2263dad6d498e
MD5 2bb2a6a1e2d39ed363948ab40df6c721
BLAKE2b-256 a7111c67e6c752cb35ee60afd4fe0d272adac3ead295009440f461e6ad9740bb

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