I created new python* module: ConsoleLib Installation (WinCMD, Termux, sh): python -m pip install ConsoleLib =================================== *python is the high-level program language =================================== Example usage after installation =================================== from ConsoleLib import Render p = Render.get_rect_points(1,1,20,20) # Getting The List Of The Points Of The Rectangle Render.DrawPic(points=p,width=80,height=25,clear_before_draw=True) # Will Render The Points (In This Example: Rectangle) from ConsoleLib import ConsoleInfo CONSOLE = ConsoleInfo.GetConsole() # Will return: sys.stdout CONSOLE.write("Hello, world!") print(ConsoleInfo.GetPipVer()) # Will print the information of the python tool: pip =================================== News =================================== I Created Python C API Version of ConsoleLib: TerminalLib =================================== Installation of the TerminalLib (gcc** required, for WinCMD, Termux, sh) =================================== python -m pip install TerminalLib =================================== **gcc is the C Compiler, needs for build .whl file for the TerminalLib for your device, if you haven't got gcc, then the installation of the TerminalLib will fail =================================== Example usage after installation =================================== import TerminalLib as t p = t.get_rect_points(1,1,20,20) # Getting The List Of The Points Of The Rectangle t.DrawPic(points=p,width=80,height=25,clear_before_draw=True) # Will Render The Points (In This Example: Rectangle) CONSOLE = t.GetConsole() # Will return: sys.stdout CONSOLE.write("Hello, world!") print(t.GetPipVer()) # Will print the information of the python tool: pip
By: @SuleimanBelKiber1 YouTube: https://youtube.com/@SuleimanBelKiber1 Telegram: https://t.me/SuleimanBelKiber1 ConsoleLib on PyPI: https://pypi.org/project/ConsoleLib TerminalLib on PyPI: https://pypi.org/project/TerminalLib