FancyUtil
FancyUtil is a package designed to add a little fancy untility functions and make your life as a developer better.
Latest Update
- Added
initfunction
Installation
Install via pip:
pip install fancyutil
Example code:
# FancyUtil
import fancyutil
fancyutil.init(display_credits=True)
# 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
Metadata
Release files for fancyutil 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| fancyutil-0.0.4.tar.gz | 4.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| fancyutil-0.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.6 kB
Release files / fancyutil-0.0.4.tar.gz
| Download URL | fancyutil-0.0.4.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6ec0fb4fb20f7d0fe76528d843b1ac42945e2adc9fe6d90da650d8229cc0cda9
|
|
BLAKE2b-256 checksum How to use checksums |
7477064cb7367d0288aadefa8d209e3a6d486aba1f633a4542153eded85d2aa0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|
Release files / fancyutil-0.0.4-py3-none-any.whl
| Download URL | fancyutil-0.0.4-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4a2f50b53fccbc605b1acbdaaec153320ee051564f0b4913d184f8d196c16123
|
|
BLAKE2b-256 checksum How to use checksums |
df61024771265649b59c08bc6fe8ea8bb06f5b4e609cbcc5884ac0fbed79bd3c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|