A downloadable tool

Background

I made these functions to work more smoothly on my projects.

Use and modify as you wish, it's Creative Commons 0, go wild.

Commands

Clear terminal

lazyToolbox.clear() = Clears the terminal, why use that instead of "os.system('clear')" ? Because it's just 5 letters... and the name of the import... I told you it's lazy !

Easier CSV

lazyToolbox.CSVlocate(filename) = Locate a csv file. Medatory of you want to compile and release your projects.

lazyToolbox.CSVtuple(filename) = Turns a csv file into a tuple.

lazyToolbox.CSVlist(filename) = Turns a csv file into a array.

lazyToolbox.CSVexport(var, filename, notification) = Exports a tuple/array to a csv file. If you want, you can output a notification into the terminal.

Make lines

Print to terminal

lazyToolbox.printL(length) = Prints a line made of "-"

lazyToolbox.printL2(length) = Prints a line made of "_"

lazyToolbox.printLc(length ,symbol) = Prints a line made of a custom symbol

Return string

lazyToolbox.mkLine(length) = Returns a line of "-".

lazyToolbox.mkLine2(length) = Returns a line of "_".

lazyToolbox.mkLineC(length ,symbol) = Returns a line made of a custom symbol.

Download

Download
Lazy Toolbox - v1 1.8 kB

Install instructions

  1. Put the lazyToolbox.py file in the same directory as your main python project file.
  2. Import the Lazy Toolbox by using the import lazyToolbox command.
  3. You have now imported the Lazy Toolbox, have fun !

Leave a comment

Log in with itch.io to leave a comment.