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.
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 'hide_noti'
fancyutil.NotificationManager.hide()
import altcolor
fancyutil.NotificationManager.restore()
# 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
Release history Release notifications | RSS feed
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.1.tar.gz
(4.3 kB
view details)
Built Distribution
File details
Details for the file fancyutil-0.0.1.tar.gz
.
File metadata
- Download URL: fancyutil-0.0.1.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.13.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0074c16e78b64d55f6ef32771ef4eeda340a608b6c73dd99b2f514722a257211 |
|
MD5 | a82242f5a930fa3f6cc83803c935b283 |
|
BLAKE2b-256 | e60ab8a49c8c1ff71ca8d1eed72841f84dba8d5b2a02b1b8d31253c8568003ba |
File details
Details for the file fancyutil-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: fancyutil-0.0.1-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.13.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 14d94f34581c0d1df671121b45c0e14f072a300f22d3a7ba8b5d91a5f766dcfa |
|
MD5 | 3667cf4856273ac22849cf294728a62c |
|
BLAKE2b-256 | 30a1e71f8979e731d5e5442061ad147554207d6fb0dd294904c66c632fefc29f |