Package: lazyt
LazyT ProjectCompilation of methods for speeding up the boring tasks such as build banner, ask for y/n or change the color for an error/warning message.Table of contentsLazyT[Install and Update](#Install and Update)Function[Description](#Function Description)[Usage](#Function usage)[LazyT](#LazyT Project)tprintLoaderAnnotationsInstall and UpdateInstallpip3 install LazyT==[version]updatepip3 install lazyt -U(released whenever a bunch of new method are developed and successfully tested)Function DescriptionclassFunction nameDescriptionReturn  valuelazytyon(question,deaf=True)Accept only Y/n input.True/Falselazytclear_console()clear the consoleNonelazytcreate_banner(options,cols=3)Build personalized bannerstrlazyt[int_choice(max=None,min=None,banner='deafval',error_message='deafval')](#int_choice(max=None,min=None,banner='Make a choice!',error_message='This is not a valid choice!'))Make you choice only integersinttprintinfo(text,end_el='\n')Print the text in yellowNonetprinterror(text,end_el='\n')Print the text in redNonetprintsystem(text,end_el='\n')Print the text in blueNoneLoaderLoader(runningmsg='', endmsg='', timeout=0.1)initialize a Loader() elementNoneLoaderstart()start the Loader elementNoneLoaderstop()stop the Loader elementNone(All the example code shown below is in the "example.py" file inside the <lazyt> directory)NotationThe line marked as follow:#>>> stuffare used for showing the console output of the previous command.defmain():print("Hello!")#>>> Hello!All the arguments are mandatory except for the args defined as "method(arg=value)" which are, by definition optional and already with a default value.defdefault_example(ex="default text"):print(ex)defmain():default_example()#>>> default textdefault_example(ex="different text")#>>> different textFunction usageImport the libraryfromlazytimport*lazytyon(question,deaf=True)defmain():proceed=lazyt.yon("Would you like to proceed?")#>>>Would you like to proceed?[Y/n]:if(proceed):print("Positive")else:print("never mind, bye")exit(0)#Default param is True, for setting it to False use:proceed=lazyt.yon("Would you like to proceed?",deaf=False)#>>>Would you like to proceed?[y/N]:if(proceed):print("positive pt.2")clear_console()defmain():trash=os.urandom(10000)print("{}\n\nThere's something on your console!".format(trash))input("Press any button to wipe it away!")lazyt.clear_console()print("You're welcome.\n")create_banner(options,cols=3)defmain():options=['first choice','second choice','third choice','fourth choice','fifth choice','sixth choice']print(lazyt.create_banner(options))#>>> [0] first choice 	[1] second choice	[2] third choice#>>> [3] fourth choice	[4] fifth choice 	[5] sixth choice#Default number of cols is 3print(lazyt.create_banner(options,cols=2))#>>> [0] first choice 	[1] second choice#>>> [2] third choice 	[3] fourth choice#>>> [4] fifth choice 	[5] sixth choiceint_choice(max=None,min=None,banner='Make a choice!',error_message='This is not a valid choice!')defmain():print(lazyt.int_choice(min=-1,banner="Value higher than -1",error_message="This number is lower than -1"))print(lazyt.int_choice(max=123))tprintdefmain():tprint.info("info, yellow text to overwrite",end_el="\r")tprint.info("info, yellow text overwrited")#>>>(yellow)info, yellow text overwritedtprint.error("error, red text")#>>>(red)error, red texttprint.system("system, blue text")#>>>(blue)system, blue textLoaderdefmain():importtimel=Loader("While working message...","Work done message!",0.05).start()#>>>While working message... ⣽foriinrange(10):time.sleep(0.25)l.stop()#delete the working message and write#>>>Work done message!AnnotationsIf you have some cool methods feel free to ping me or create a merge request, this package have the only purpose of simplifying and speeding up the boring task and why not making even a small script look more aesthetic without too much effort.\All this methods are developed by me -@ThomasAndreatta- in different project and copy-pasting the methods -or the class file - between the different repo was too much effort for me, that's why i've decided to build a pypi package, in this way wherever i am i can simply typeimportlazytand i'm good to go.Funny how being lazy leaded me to BUILD a package with all the documentation instead of coping and pasting a file.Yeah, LazyT 'cause i'm T, and i'm lazy.