A Python library for prettier, fully customizable console outputs.
Project description
EnhancedStr
A Python library for prettier, fully customizable console outputs.
Code Example
from enhanced_str import es, clearConsole
def main() -> None:
clearConsole()
es("You have a new message!").mixedGradient(0xFF00FF, 0xFFFFFF, 2).underline().out()
print("\n")
print(es("Cool forward color transition!").gradient(0x000000, 0xFFFFFF))
print(es("Cool reverse color transition!").gradient(0xFFFFFF, 0x000000))
print("\n")
es("Error!").hexColor(0xFF0000).bold().out()
es("Warning!").hexColor(0xFFFF00).bold().out()
es("Success!").hexColor(0x00FF00).bold().out()
print("\n")
es("Alert: Something might be going wrong.").hexColor(0xFF7F7F).bold().outBlink(
0.2, 5
)
print("\n")
es("Hello World! This is a step by step character demonstration.").gradient(
0x3D1E6D, 0xFFABFF
).bold().outSBS(0.02)
while 1:
...
if __name__ == "__main__":
main()
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
enhanced_str-0.0.7.tar.gz
(4.5 kB
view hashes)
Built Distribution
Close
Hashes for enhanced_str-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 085abdf78c3989dba4a0b978523d9d17ea0eefea33e46ea07b4de772e92de55f |
|
MD5 | e3bad182dc2df8020bc77e88c6ceeeb8 |
|
BLAKE2b-256 | 6fab8fc5890ed8a76bf901c7fbea21fb7cebb5145d26187cf066de1350b82088 |