BetterPrinting

An set of printing tools


Keywords
betterprint, print, betterprinting, printing, better, stringmanipulation, instaprint, sysinfo, systeminfo, terminal, ui, color, rainbow, draw
License
MIT
Install
pip install BetterPrinting==0.7.4

Documentation

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

The draw class

The ui class

The system class


Command explanation

All commands here


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:

image

Text box:

import BetterPrinting as bp

bp.ui.text_box("My new game!", "press Enter to start", rounded_edges=True)

Output:

image

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:

image

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:

image

Print System info:

import BetterPrinting as bp

bp.break_line()
bp.system.sys_info(os=True, version=True, ip=True)

In Windows:

image

In Linux subsystem:

image