Skip to main content

make terminal ui's beautiful.

Project description

pygradient

make terminal UI'S beautiful.

Installation

Install my-project with npm

pip install pygradient

pacman -S python-pygradient

Usage / examples

from pygradientify import Colors

"""
normal print
"""
print(Colors.red_to_blue("Hello World!"))
print(Colors.mystic("Hello World!"))

"""
ascii art print
"""
art = """
╔═╗╦ ╦╔═╗╦═╗╔═╗╔╦╗╦╔═╗╔╗╔╔╦╗╦╔═╗╦ ╦
╠═╝╚╦╝║ ╦╠╦╝╠═╣ ║║║║╣ ║║║ ║ ║╠╣ ╚╦╝
╩   ╩ ╚═╝╩╚═╩ ╩═╩╝╩╚═╝╝╚╝ ╩ ╩╚   ╩ 
"""

print(Colors.blue_to_cyan(art))
print(Colors.purple_to_white(art))
print(Colors.orange_to_pink(art))

"""
all colors.
"""
for gradients in Colors.colors:
    grad = getattr(Colors, gradients)
    print(grad(f"{gradients}: The quick brown fox jumps over the lazy dog"))

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

pygradientify-1.0.0.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

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

pygradientify-1.0.0-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file pygradientify-1.0.0.tar.gz.

File metadata

  • Download URL: pygradientify-1.0.0.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for pygradientify-1.0.0.tar.gz
Algorithm Hash digest
SHA256 44feef00e38be59b358c90ce268b123f550cf64e28191470aaeb3459c314b400
MD5 0a08c466e5d03a7e7115f935a60deff9
BLAKE2b-256 ae6e32c8a1c4642ceba1498db40ca981c11299d98591553c744e2e03b77aef9c

See more details on using hashes here.

File details

Details for the file pygradientify-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: pygradientify-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for pygradientify-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 04cabe3afe5e2da7ab57ef120d90f26bc932ceacfb0b9a871db5b291d361f61b
MD5 7dc331a1fa69678eb978b762f7e5b037
BLAKE2b-256 fef83f981ed26a7d49d14d92294690ab69e5fe33cd09d9256078ec52dd30b3d6

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