Package: pybound
pyBoundAllows you to access multiple useful tools in your python code quick and easy.Documentation:clear()- clears consolewait(time=___)- pauses code for number for seconds inputed.timeis an optional parameter. By default it is 1 second.print("Hello, welcome to pyBound!")
wait()
print("This is some extra text!")
wait(4)
clear()will display:Hello, welcome to pyBound!for 1 second, and then it will display:Hello, welcome to pyBound!
This is some extra text!for 4 seconds, after which the console will be cleared. The final display will be:Here are some formatting functions that pybound has to offer:rgb_fore(r, g, b)- Changes color of printed text to an RGB value.rgb_back(r, g, b)- Changes background of printed text to an RGB valueThere are also more formatting options for your python text. They are used the same way thergb_fore()and rgb_back` is used. They are listed here:end()- Deletes all existing formattingbold()- Bolds textfaint()- Decreases the opacity of textitalic()- Italicizes textunderline()- Underlines textblink_slow()- Makes text blink slowlyblink_fast()- Makes text blink quicklynegative()- Inverts the background color and the foreground color of textconceal()- Makes text invisiblecrossed()- Strikes through textred = rgb_fore(255, 0, 0)
blue = rgb_fore(0, 0, 255)
print(red + "Hello, " + blue + "there!")
print("I love pyBound!")will printHello there!
I love pyBound!such thatHello,is in red andthere! I love pyBound!is in blue. However, you can useend()to fix this.red = rgb_fore(255, 0, 0)
blue = rgb_fore(0, 0, 255)
end = end()
print(red + "Hello, " + blue + "there!" + end)
print("I love pyBound!")will printHello,in red, andthere!in blue, andI love pyBound!in the default console text color, usually white.pyBound also provides the\x1bANSI Escape Codes with easier functionality. All parameters are optional. For most of the\x1bANSI Escape Code functions, the default is 1. Exceptions are listed below the functions.cursor_up(num=___)- Moves cursor upnumnumber of times.cursor_down(num=___)- Moves cursor downnumnumber of times.cursor_forward(num=___)- Moves cursor forwardnumnumber of times.cursor_back(num=___)- Moves cursor backwardsnumnumber of times.cursor_next_line(num=___)- Moves cursor to the next linenumnumber of times.cursor_prev_line(num=___)- Moves cursor to the previous linenumnumber of times.cursor_horiz_abs_pos(col=___)- Cursor is moved to the column that thecolparameter provides, within the row that it is already in.cursor_pos(row=___, col=___)- Moves cursor to the specified row and column provided by therowandcolparameters from the top left.cursor_indent(num=___)- Indents cursor. Can be used alternatively to \t.erase_in_display(mode=___)- Check below for modes.erase_in_line(mode=___)- Check below for modes.scroll_up(num=___)- EXPLANATION NEEDEDscroll_down(num=___)- EXPLANATION NEEDEDcursor_save_pos()- Saves cursor position to be used when restoring cursor position.cursor_restore_pos()- Uses saved cursor position to restore it.cursor_invisible()- Makes cursor invisible in the console.cursor_visible()- Makes the cursor visible in the console.The following are exceptions for the \x1b functions' default parameter of "1":erase_in_display(mode=___)-  Check the next section for information on this.erase_in_line(mode=___)- Check the next section for information on this.cursor_save_pos(),cursor_restore_pos(),cursor_invisible(), andcursor_visible()all don't have parameters.The following are the modes forerase_in_display(mode=___):ModecursorToEnd- Erase from cursor to end of screen.ModestartToCursor- Erase from start of screen to cursor.ModeentireScreen- Erase entire screen (default if mode not specified).Modescrollback- Erase scrollback.The following are the modes forerase_in_line(mode=___):ModecursorToEnd- Erase from cursor to end of lineModestartToCursor- Erase from start of line to cursorModeentireLine- Erase entire line (default if mode not specified)slow_print(*strings,  time=___ , sep=___ , end=___)- prints text in a typwriter animation, one character at a time. All parameters are optional.Pybound'sslow_print()function was modeled after Python's original print statement, you can do virtually all the same things inslow_print()and inprint(). The default paramaters are showcased below, such that the following lines will do the same thing:slow_print("Hello", "Welcome!", time = 0.045, sep = ' ', end = '\n')

slow_print("Hello", "Welcome!", )This is basically the same as theprint()function, but theflushparameter is replaced by thetimeparameter. Time represents the time in seconds between the printing of each character.   You have to write the time as an integer or a float, although it is recommended that you stay in between 0 and 1 seconds.