tvaLib
Classes | Namespaces | Functions | Variables
tools.py File Reference

Go to the source code of this file.

Classes

class  lib.tools.ProgressBar
 ProgressBar. More...
 

Namespaces

 lib.tools
 

Functions

def lib.tools.printTimeStamp (message, justifyWidth=50)
 Output & debug. More...
 
def lib.tools.printWarning (message, label='Warning', indent=0)
 
def lib.tools.printNotice (message, label='Notice', indent=0)
 
def lib.tools.grabError ()
 
def lib.tools.printTable (tableData, indent=4, padding=' ')
 
def lib.tools.toChunks (threads, iterable, padvalue=None, asList=True)
 Iterable operations. More...
 
def lib.tools.explodeList (haystack, needle=None, returnIndeces=False)
 
def lib.tools.flatten_list (data)
 
def lib.tools.wrapList2SquareMatrix (data)
 
def lib.tools.drange (start, stop, step)
 
def lib.tools.pointList2ColumnList (data)
 
def lib.tools.unique (nonUniqueList)
 
def lib.tools.mergeDicts (dictA, dictB, overwrite=False, customMergeCommand=None)
 
def lib.tools.list2int (var)
 
def lib.tools.list2str (var)
 
def lib.tools.crawlDirsForFilePattern (pattern, path=os.getcwd(), returnList=False, prependPath=True)
 File IO and metadata. More...
 
def lib.tools.fileLineLen (filename, countLimit=None)
 
def lib.tools.stripKwargsForUncleanTarget (kwargs, func)
 Function tools. More...
 
def lib.tools.prepareInstanceMethodForPickling ()
 Pickling hacks. More...
 
def lib.tools.commandStacktoShellString (cmd_stack)
 Process manipulation. More...
 
def lib.tools.command_timeout (cmd, timeout=0, prependMsg='', descriptor='command', debug=False, logging=None, verbose=0)
 
def lib.tools.command_async_pool (cmds, threads=1, timeout=0, prependMsg='', descriptor='command', sungrid=False, debug=False, logging=None, stopIfError=False, verbose=0)
 
def lib.tools.terminate_process (pid)
 
def lib.tools.memory_inspection (variable, name='', indent=0, column_size=45, verbose=0)
 Debug. More...
 
def lib.tools.memory_inspection_obj (obj, verbose=1)
 
def lib.tools.memory_inspection_list (list_, names=[], verbose=1)
 

Variables

 lib.tools.Fore = tvaConfig.Fore()
 
 lib.tools.Back = tvaConfig.Back()
 
 lib.tools.Style = tvaConfig.Style()