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.6.tar.gz
(4.5 kB
view hashes)
Built Distribution
Close
Hashes for enhanced_str-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71d94e643bb43644e01b0f35f80efac1d7968e2544e51e0c0065a59ad7eeae0b |
|
MD5 | b4f9e044e564639bb20194f0c53ad1f9 |
|
BLAKE2b-256 | 00baa27cf20f18f2f0952d4376275f33e17c873afaac7f704e86b69fee9063dd |