BetterPrinting
A python library for "better" printing
BetterPrinting is a library for easy to use printing actions and functions arround printing!
Pypi: https://pypi.org/project/BetterPrinting/
Version: 0.7.1
Installation
Ensure you have at least Python 3.
pip install -U BetterPrinting
or
pip3 install -U BetterPrinting
Class explanations
Command explanation
Some examples
Passwords:
import BetterPrinting as bp
bp.multi_lines("----This is a easy Password creator---", "Lets start!\n")
x = input('input the length of your password here: ')
bp.random_str(int(x))
Output:
Text box:
import BetterPrinting as bp
bp.ui.text_box("My new game!", "press Enter to start", rounded_edges=True)
Output:
Multi line:
from BetterPrinting import multi_lines
multi_lines("[1] Today I will go to work!", "[2] Today I will work in my garden",
"[3] Today i will go hiking!", "[4] Today I will learn Python", "[5] Today I wíll just relax")
Output:
A time table:
import BetterPrinting as bp
bp.break_line()
bp.multi_lines("This is a Time table", f"Time: {bp.system.time(print_val=False)}", f"Date: {bp.system.date(print_val=False)}")
bp.break_line()
Output:
Print System info:
import BetterPrinting as bp
bp.break_line()
bp.system.sys_info(os=True, version=True, ip=True)
In Windows:
In Linux subsystem: