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
- 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
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.4.tar.gz
(4.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fancyutil-0.0.4.tar.gz.
File metadata
- Download URL: fancyutil-0.0.4.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6ec0fb4fb20f7d0fe76528d843b1ac42945e2adc9fe6d90da650d8229cc0cda9
|
|
| MD5 |
d37e42fcdce419d35d21a23649f42363
|
|
| BLAKE2b-256 |
7477064cb7367d0288aadefa8d209e3a6d486aba1f633a4542153eded85d2aa0
|
File details
Details for the file fancyutil-0.0.4-py3-none-any.whl.
File metadata
- Download URL: fancyutil-0.0.4-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4a2f50b53fccbc605b1acbdaaec153320ee051564f0b4913d184f8d196c16123
|
|
| MD5 |
e534af1bb9c1b5012b1d26ce0bf3f0ef
|
|
| BLAKE2b-256 |
df61024771265649b59c08bc6fe8ea8bb06f5b4e609cbcc5884ac0fbed79bd3c
|