Skip to main content

A package designed to add a little fancy untility functions and make your life better.

Project description

FancyUtil

FancyUtil is a package designed to add a little fancy untility functions and make your life as a developer better.

Latest Update

  • Renamed NotificationManager.restore to NotificationManager.show
  • Added NotificationManager to gitbase

Installation

Install via pip:

pip install fancyutil

Example code:

# FancyUtil
import fancyutil

# Import altcolor normally
import altcolor as ac

fancyutil.wait(5) # Delay clearing
fancyutil.clear() # Clear old altcolor text

# Import altcolor with 'NotificationManager'
fancyutil.NotificationManager.hide()
import altcolor
fancyutil.NotificationManager.show()

# Variables
CODE: str = "abc123"
code_wrong: bool = True
PASSWORD: str = "secure_password"

# Hide input system
input: str = fancyutil.hide_input(prompt="What's the secret code: ", hide_char="")

while code_wrong:
    if input == CODE:
        print(fancyutil.colored_text("GREEN", "Correct code!"))
        code_wrong = False
    else:
        print(fancyutil.colored_text("RED", "Incorrect code!"))

# Password system
password = fancyutil.get_password()
if password == PASSWORD:
    print(fancyutil.leaked_text("BLUE", "Cool text"))
    print("Wait, why am I still blue???")
    print("Oh, because 'leaked_text' dosen't auto reset color like 'colored_text'!" + fancyutil.reset())
else:
    fancyutil.exit_app(msg="Better luck next time!") # Ain't getting in here without that password

fancyutil.exit_app(msg="Thanks for playing!") # This is called to make sure after we have nothing left to tell the user it auto-exits and displays your message

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

fancyutil-0.0.3.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

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

fancyutil-0.0.3-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file fancyutil-0.0.3.tar.gz.

File metadata

  • Download URL: fancyutil-0.0.3.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for fancyutil-0.0.3.tar.gz
Algorithm Hash digest
SHA256 9fa8b3af2e5f76783bdc169a729181c5cf6f70e55336fa28890c9883c541f8b9
MD5 62a0c340902e9cc91829dcfcfea8c33c
BLAKE2b-256 fbe1dc4f552cf75721929a79269ccded3fc8181ad62e864f60843e07f6218765

See more details on using hashes here.

File details

Details for the file fancyutil-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: fancyutil-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for fancyutil-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 30e93010b1836c61ff352acc8d70a28a1296769b0822e20e5aba6c32cc6b4920
MD5 7717da4d19d66e0b993229888dc31de2
BLAKE2b-256 406eb8b3d19bafc7c5f92484d323629b84db58bd94aefb7c0de01c593690fc81

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