Module Expr Str Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias Import alias Assign NameStore NameLoad Assign NameStore NameLoad If CompareEq AttributeLoad NameLoad attr Str body TryExcept body ImportFrom alias Assign NameStore Call NameLoad handlers ExceptHandler body Assign NameStore NameLoad ClassDef bases body FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr BinOpMod Str NameLoad If CompareIsNot NameLoad NameLoad body AugAssignAdd AttributeStore NameLoad attr BinOpMod Str NameLoad orelse AugAssignAdd AttributeStore NameLoad attr Str decorator_list decorator_list Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Num Assign NameStore Call NameLoad Num Num Assign NameStore Call NameLoad Num Num Assign NameStore Call NameLoad Num Num Assign NameStore Call NameLoad Num Num Assign NameStore Call NameLoad Num Num Assign NameStore Call NameLoad Num Num Assign NameStore Call NameLoad Num Num Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore Dict Str Str Str Str Str Str Str Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Str Str NameLoad NameLoad NameLoad Assign NameStore Call NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad If UnaryOpNot NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore SubscriptLoad NameLoad Index Str If CompareEq Call AttributeLoad NameLoad attr Str body Return NameLoad If CompareEq Call AttributeLoad NameLoad attr Str body Return NameLoad If CompareEq AttributeLoad NameLoad attr Str body Return BoolOpAnd Call AttributeLoad NameLoad attr CompareIsNot NameLoad NameLoad orelse Assign NameStore ListLoad Str Str Str Str Str Str Str Str Str Str Str Str Str Return BoolOpAnd Call AttributeLoad NameLoad attr CompareIn Str AttributeLoad NameLoad attr CompareIn SubscriptLoad AttributeLoad NameLoad attr Index Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore SubscriptLoad NameLoad Index Str If CompareEq Call AttributeLoad NameLoad attr Str body Return NameLoad If CompareEq Call AttributeLoad NameLoad attr Str body Return NameLoad If BoolOpOr BoolOpAnd CompareEq AttributeLoad NameLoad attr Str UnaryOpNot NameLoad UnaryOpNot Call AttributeLoad NameLoad attr body Return NameLoad orelse Return NameLoad decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body If CompareEq AttributeLoad NameLoad attr Str body Expr Call NameLoad NameLoad orelse Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Global identifier If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad If NameLoad body Assign NameStore BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body If BoolOpAnd NameLoad Call NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args defaults vararg kwarg body Expr Str If SubscriptLoad NameLoad Index Str body Assign SubscriptStore NameLoad Index Str Str Assign NameStore Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad If SubscriptLoad NameLoad Index Str body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign NameStore NameLoad If Call NameLoad NameLoad NameLoad body If NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse If BoolOpAnd CompareEq NameLoad Str Call AttributeLoad Call NameLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Assign NameStore NameLoad orelse Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad If BoolOpAnd CompareNotEq NameLoad BinOpSub Call NameLoad NameLoad Num NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad If BoolOpAnd CompareNotEq NameLoad BinOpSub Call NameLoad NameLoad Num NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad If SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad NameLoad attr NameLoad If Call AttributeLoad NameLoad attr Str NameLoad body Expr Call NameLoad NameLoad NameLoad If BoolOpAnd NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults vararg kwarg body Expr Str Expr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args defaults vararg kwarg body Expr Str Assign NameStore BinOpAdd ListLoad NameLoad NameLoad Str Call NameLoad NameLoad Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults vararg kwarg body Expr Str Assign NameStore BinOpAdd ListLoad NameLoad Str Call NameLoad NameLoad Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults vararg kwarg body Expr Str If SubscriptLoad NameLoad Index Str body Return Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Expr Str Assign NameStore Call NameLoad Call NameLoad NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad Assign NameStore BinOpMod NameLoad TupleLoad BinOpAdd NameLoad Num NameLoad Expr Call NameLoad NameLoad Str NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If Call AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore BinOpMult BinOpDiv Call NameLoad NameLoad NameLoad Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd NameLoad BinOpMod Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args defaults vararg kwarg body Expr Str If BoolOpOr UnaryOpNot SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str body Return Assign NameStore BinOpAdd ListLoad NameLoad Str Call NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Expr Str Return ListComp BinOpAdd BinOpMult Str NameLoad NameLoad comprehension NameStore NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Return Call AttributeLoad Str attr Call NameLoad NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return BinOpMult Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Index Num Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Return TupleLoad NameLoad BinOpAdd NameLoad Str AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad Str NameLoad Call AttributeLoad NameLoad attr decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults vararg kwarg body FunctionDef arguments args defaults vararg kwarg body Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore BinOpSub NameLoad AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call NameLoad Call NameLoad NameLoad Num Assign TupleStore NameStore NameStore Call NameLoad NameLoad Num Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad NameLoad BinOpDiv AttributeLoad NameLoad attr Num If SubscriptLoad NameLoad Index Str body Expr Call NameLoad BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If UnaryOpNot NameLoad body Return NameLoad orelse Assign NameStore DictComp Call AttributeLoad Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad attr NameLoad comprehension NameStore NameLoad AugAssignAdd NameStore BinOpMod Str SubscriptLoad NameLoad Index Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Import alias Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore NameLoad If CompareEq NameLoad Str body Assign NameStore Call NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad If BoolOpOr CompareIn NameLoad ListLoad Str Str Call AttributeLoad NameLoad attr Str body Assign NameStore Call NameLoad If CompareIs NameLoad NameLoad body Assign NameStore TupleLoad Num Num Return NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore NameLoad TryExcept body ImportFrom alias alias Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Call NameLoad Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad handlers ExceptHandler body Return NameLoad If NameLoad body Import alias Assign TupleStore NameStore NameStore NameStore NameStore NameStore NameStore NameStore NameStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore BinOpAdd BinOpSub NameLoad NameLoad Num Assign NameStore BinOpAdd BinOpSub NameLoad NameLoad Num Return TupleLoad NameLoad NameLoad orelse Return NameLoad decorator_list FunctionDef arguments args defaults body TryExcept body Import alias Assign NameStore Call AttributeLoad NameLoad attr ListLoad Str Str keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad Str Str keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Num Return TupleLoad NameLoad NameLoad handlers ExceptHandler body Return NameLoad decorator_list FunctionDef arguments args defaults body FunctionDef arguments args NameParam defaults body TryExcept body Import alias alias alias alias Assign NameStore Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str handlers ExceptHandler body Return NameLoad Return NameLoad decorator_list Assign NameStore BoolOpOr Call NameLoad Num Call NameLoad Num Call NameLoad Num If UnaryOpNot NameLoad body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler body Pass If UnaryOpNot NameLoad body TryExcept body Assign NameStore TupleLoad SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad NameLoad attr Index Str handlers ExceptHandler body Return NameLoad Return TupleLoad Call NameLoad SubscriptLoad NameLoad Index Num Call NameLoad SubscriptLoad NameLoad Index Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareIn NameLoad ListLoad Str Str body Raise Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad Assign NameStore Str For NameStore NameLoad body If CompareIn NameLoad NameLoad body Assign NameStore BinOpMod Str NameLoad AugAssignAdd NameStore Str AugAssignAdd NameStore Str AugAssignAdd NameStore Call AttributeLoad Str attr NameLoad Raise Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return NameLoad decorator_list
N/A N/A  Tools for a nice user interface

 N/A sys N/A os N/A datetime N/A difflib N/A functools N/A traceback StringIO StringIO N/A qisys.error N/A _console None N/A HAS_PYREADLINE True N/A N/A N/A os name nt N/A N/A N/A pyreadline.console Console N/A _console N/A Console N/A N/A N/A N/A HAS_PYREADLINE False _Color N/A N/A __init__ N/A N/A self code modifier N/A None N/A N/A N/A self code N/A [%d code N/A N/A modifier None N/A N/A N/A self code N/A ;%dm modifier N/A N/A N/A self code m N/A N/A N/A reset N/A _Color 0 N/A bold N/A _Color 1 N/A faint N/A _Color 2 N/A standout N/A _Color 3 N/A underline N/A _Color 4 N/A blink N/A _Color 5 N/A overline N/A _Color 6 N/A black N/A _Color 30 N/A darkred N/A _Color 31 N/A darkgreen N/A _Color 32 N/A brown N/A _Color 33 N/A darkblue N/A _Color 34 N/A purple N/A _Color 35 N/A teal N/A _Color 36 N/A lightgray N/A _Color 37 N/A darkgray N/A _Color 30 1 N/A red N/A _Color 31 1 N/A green N/A _Color 32 1 N/A yellow N/A _Color 33 1 N/A blue N/A _Color 34 1 N/A fuchsia N/A _Color 35 1 N/A turquoise N/A _Color 36 1 N/A white N/A _Color 37 1 N/A darkteal turquoise N/A darkyellow brown N/A fuscia fuchsia N/A CONFIG N/A verbose quiet color title timestamp interactive record N/A N/A N/A os environ get VERBOSE False auto auto False True False N/A _MESSAGES N/A list configure_logging N/A N/A args N/A N/A N/A verbose N/A N/A N/A os environ get VERBOSE False N/A N/A verbose N/A N/A verbose N/A args verbose N/A N/A CONFIG N/A color N/A args color N/A N/A CONFIG N/A title N/A args title N/A N/A CONFIG N/A verbose verbose N/A N/A CONFIG N/A quiet N/A args quiet N/A N/A CONFIG N/A timestamp N/A args timestamp N/A config_title N/A N/A fp N/A N/A N/A config_title N/A CONFIG N/A title N/A N/A N/A N/A config_title lower never N/A N/A False N/A N/A N/A N/A config_title lower always N/A N/A True N/A N/A N/A os name nt N/A N/A N/A N/A N/A fp isatty N/A _console None N/A N/A legal_terms N/A xterm xterm-256color xterm-color Eterm aterm rxvt screen kterm rxvt-unicode gnome interix cygwin rxvt-unicode-256color N/A N/A N/A N/A fp isatty N/A TERM N/A os environ N/A N/A N/A os environ N/A TERM legal_terms N/A config_color N/A N/A fp N/A N/A N/A config_color N/A CONFIG N/A color N/A N/A N/A N/A config_color lower never N/A N/A False N/A N/A N/A N/A config_color lower always N/A N/A True N/A N/A N/A N/A N/A os name nt N/A HAS_PYREADLINE N/A N/A N/A fp isatty N/A N/A False N/A N/A True N/A N/A _enable_xterm_title None update_title N/A N/A mystr fp N/A N/A N/A N/A N/A os name nt N/A N/A N/A _update_title_windows mystr N/A N/A N/A _update_title_unix mystr fp N/A _update_title_unix N/A N/A mystr fp N/A N/A N/A _enable_xterm_title N/A N/A _enable_xterm_title None N/A N/A _enable_xterm_title N/A config_title fp N/A _enable_xterm_title N/A N/A mystr N/A ]0;%s mystr N/A N/A N/A fp write mystr N/A N/A N/A fp flush N/A _update_title_windows N/A N/A mystr N/A N/A N/A N/A _console N/A config_title N/A sys stdout N/A N/A N/A N/A _console title txt mystr N/A _msg N/A N/A N/A tokens kwargs N/A N/A  Helper method for error, warning, info, debug

     N/A N/A CONFIG N/A record N/A N/A N/A CONFIG N/A color never N/A fp N/A N/A kwargs get fp N/A sys stdout N/A sep N/A N/A kwargs get sep N/A end N/A N/A kwargs get end N/A with_color N/A config_color fp N/A res N/A list N/A nocolorres N/A list N/A N/A CONFIG N/A timestamp N/A N/A now N/A N/A N/A datetime datetime now N/A N/A N/A res append N/A N/A now strftime [%Y-%m-%d %H:%M:%S]  N/A N/A i token N/A enumerate tokens N/A N/A should_add_sep True N/A N/A isinstance token _Color N/A N/A with_color N/A N/A N/A N/A res append N/A token code N/A N/A N/A N/A sep N/A N/A N/A str token endswith N/A N/A N/A N/A res append N/A str token N/A N/A N/A nocolorres append N/A str token N/A should_add_sep False N/A N/A N/A N/A res append N/A str token N/A N/A N/A i N/A N/A len tokens 1 should_add_sep N/A N/A N/A N/A res append sep N/A N/A N/A nocolorres append N/A str token N/A N/A N/A i N/A N/A len tokens 1 should_add_sep N/A N/A N/A N/A nocolorres append sep N/A should_add_sep True N/A with_color N/A N/A N/A N/A res append N/A reset code N/A N/A N/A res append end N/A stringres N/A N/A join res N/A stringnc N/A N/A join nocolorres N/A N/A CONFIG N/A record N/A N/A N/A N/A _MESSAGES append stringres N/A N/A N/A kwargs get update_title False N/A N/A N/A update_title stringnc fp N/A N/A _console with_color N/A N/A N/A N/A _console write_color stringres N/A N/A N/A N/A fp write stringres N/A N/A N/A fp flush N/A fatal N/A N/A N/A tokens kwargs N/A N/A  Print an error message and calls sys.exit  N/A N/A error tokens kwargs N/A N/A N/A sys exit 1 N/A error N/A N/A N/A tokens kwargs N/A N/A  Print an error message  N/A tokens N/A N/A bold red [ERROR]: N/A list tokens N/A N/A kwargs N/A fp N/A sys stderr N/A N/A _msg tokens kwargs N/A warning N/A N/A N/A tokens kwargs N/A N/A  Print a warning message  N/A tokens N/A N/A brown [WARN ]: N/A list tokens N/A N/A kwargs N/A fp N/A sys stderr N/A N/A _msg tokens kwargs N/A info N/A N/A N/A tokens kwargs N/A N/A  Print an informative message  N/A N/A CONFIG N/A quiet N/A N/A N/A N/A _msg tokens kwargs N/A info_count N/A N/A i n N/A rest kwargs N/A N/A  Same as info, but displays a nice counter
    color will be reset
    >>> info_count(0, 4)
    * (1/4)
    >>> info_count(4, 12)
    * ( 5/12)
    >>> info_count(4, 10)
    * ( 5/10)

     N/A num_digits N/A len N/A str n N/A counter_format N/A N/A (%{}d/%d) format num_digits N/A counter_str N/A counter_format N/A N/A i 1 n N/A N/A info green * reset counter_str reset rest kwargs N/A info_progress N/A N/A value max_value prefix N/A N/A N/A  Display info progress in percent
    :param: value the current value
    :param: max_value the max value
    :param: prefix the prefix message to print

    >>> info_progress(5, 20, "Done")
    Done: 25%

     N/A N/A N/A N/A sys stdout isatty N/A N/A percent N/A N/A N/A float value max_value 100 N/A N/A N/A N/A sys stdout write N/A prefix N/A : %.0f%%
 percent N/A N/A N/A N/A sys stdout flush N/A debug N/A N/A N/A tokens kwargs N/A N/A  Print a debug message  N/A N/A N/A N/A CONFIG N/A verbose N/A CONFIG N/A record N/A N/A N/A tokens N/A N/A blue [DEBUG]: N/A list tokens N/A N/A _msg tokens kwargs N/A indent_iterable N/A N/A elems num N/A 2 N/A N/A Indent an iterable. N/A N/A N/A N/A num l N/A l elems N/A indent N/A N/A text num N/A 2 N/A N/A Indent a piece of text. N/A lines N/A N/A text splitlines N/A N/A N/A join N/A indent_iterable lines num num N/A tabs N/A N/A num N/A N/A N/A  Compute a blank tab  N/A N/A num N/A message_for_exception N/A N/A exception message N/A N/A N/A  Returns a tuple suitable for ui.error()
    from the given exception.
    (Traceback will be part of the message, after
    the ``message`` argument)

    Useful when the exception occurs in an other thread
    than the main one.

     N/A tb N/A N/A N/A sys exc_info N/A 2 N/A io N/A StringIO N/A N/A N/A traceback print_tb tb file io N/A N/A red N/A message N/A N/A exception __class__ __name__ N/A str exception reset N/A N/A io getvalue N/A timer N/A N/A N/A  To be used as a decorator,
    or as a with statement:

    >>> @timer("something")
        def do_something():
            foo()
            bar()
    # Or:
    >>> with timer("something")
        foo()
        bar()

    This will print:
    'something took 2h 33m 42s'

     __init__ N/A N/A self description N/A N/A N/A N/A self description description N/A N/A self start_time None N/A N/A self stop_time None N/A N/A self elapsed_time None N/A __call__ N/A N/A self func N/A args kwargs N/A res N/A N/A N/A args kwargs N/A N/A N/A N/A self start N/A ret N/A func args kwargs N/A N/A N/A self stop N/A ret N/A N/A N/A functools wraps func N/A res N/A __enter__ N/A N/A self N/A N/A N/A N/A N/A self start N/A self N/A __exit__ N/A N/A self N/A unused N/A N/A N/A N/A self stop N/A start N/A N/A self N/A N/A N/A  Start the timer  N/A N/A self start_time N/A N/A N/A datetime datetime now N/A stop N/A N/A self N/A N/A N/A  Stop the timer and emit a nice log  N/A end_time N/A N/A N/A datetime datetime now N/A elapsed_time N/A end_time N/A self start_time N/A elapsed_seconds N/A elapsed_time seconds N/A N/A hours remainder N/A divmod N/A int elapsed_seconds 3600 N/A N/A minutes seconds N/A divmod remainder 60 N/A as_str N/A %sh %sm %ss %dms N/A hours minutes seconds N/A N/A elapsed_time microseconds 1000 N/A N/A CONFIG N/A timestamp N/A N/A N/A info N/A %s took %s N/A N/A self description as_str N/A N/A did_you_mean N/A N/A message user_input choices N/A N/A N/A N/A choices N/A N/A message N/A N/A result N/A N/A N/A N/A N/A difflib SequenceMatcher a user_input b choice ratio choice N/A choice choices N/A message N/A 
Did you mean: %s? N/A result N/A N/A max result N/A message N/A get_console_size N/A N/A N/A N/A N/A  Return a tuple containing the current console size: (width, height)  N/A platform N/A current_os N/A N/A platform system N/A tuple_xy None N/A N/A current_os Windows N/A N/A tuple_xy N/A _get_console_size_windows N/A N/A tuple_xy None N/A N/A tuple_xy N/A _get_console_size_tput N/A N/A N/A current_os N/A Linux Darwin N/A N/A current_os startswith CYGWIN N/A N/A tuple_xy N/A _get_console_size_linux N/A N/A tuple_xy None N/A N/A tuple_xy N/A 80 25 N/A tuple_xy N/A _get_console_size_windows N/A N/A N/A N/A N/A res None N/A N/A ctypes windll create_string_buffer N/A h N/A N/A N/A windll kernel32 GetStdHandle -12 N/A csbi N/A create_string_buffer 22 N/A res N/A N/A N/A windll kernel32 GetConsoleScreenBufferInfo h csbi N/A N/A N/A N/A None N/A res N/A N/A struct N/A N/A bufx bufy curx cury wattr left top right bottom maxx maxy N/A N/A struct unpack hhhhHhhhhhh N/A csbi raw N/A sizex N/A N/A right left 1 N/A sizey N/A N/A bottom top 1 N/A N/A sizex sizey N/A N/A None N/A _get_console_size_tput N/A N/A N/A N/A N/A N/A N/A subprocess N/A proc N/A N/A subprocess Popen N/A tput cols stdin N/A subprocess PIPE stdout N/A subprocess PIPE N/A output N/A N/A proc communicate input None N/A cols N/A int N/A output N/A 0 N/A proc N/A N/A subprocess Popen N/A tput lines stdin N/A subprocess PIPE stdout N/A subprocess PIPE N/A output N/A N/A proc communicate input None N/A rows N/A int N/A output N/A 0 N/A N/A cols rows N/A N/A N/A N/A None N/A _get_console_size_linux N/A N/A N/A N/A ioctl_GWINSZ N/A N/A fd N/A N/A N/A N/A N/A fcntl termios struct os N/A cr N/A N/A struct unpack hh N/A N/A fcntl ioctl fd N/A termios TIOCGWINSZ 1234 N/A N/A N/A N/A None N/A cr N/A N/A cr N/A N/A ioctl_GWINSZ 0 N/A ioctl_GWINSZ 1 N/A ioctl_GWINSZ 2 N/A N/A cr N/A N/A N/A N/A fd N/A N/A os open N/A N/A os ctermid N/A os O_RDONLY N/A cr N/A ioctl_GWINSZ fd N/A N/A N/A os close fd N/A N/A N/A N/A N/A N/A cr N/A N/A N/A N/A cr N/A N/A N/A os environ N/A LINES N/A N/A os environ N/A COLUMNS N/A N/A N/A N/A None N/A N/A N/A int N/A cr N/A 1 N/A int N/A cr N/A 0 N/A valid_filename N/A N/A value N/A N/A N/A  Validate that the string passed as input can safely
    be used as a valid file name

     N/A N/A value N/A . .. N/A N/A N/A N/A N/A qisys error Error N/A Invalid name: %s value N/A bad_chars <>:"/\|?* N/A bad_char bad_chars N/A N/A N/A bad_char value N/A N/A mess N/A Invalid name: '%s'
 value N/A mess A valid name should not contain any  N/A mess of the following chars:
 N/A mess N/A N/A join bad_chars N/A N/A N/A N/A qisys error Error mess N/A value N/A