asthook.utils package

Submodules

asthook.utils.infos module

class asthook.utils.infos.Info

Bases: object

class asthook.utils.infos.Info_meta(*args, **kwargs)

Bases: type

Init(path)
property contents
get(name)
get_path()
set(data, value)
update()

Module contents

class asthook.utils.Output

Bases: object

class SpecialEncoder(*, skipkeys=False, ensure_ascii=True, check_circular=True, allow_nan=True, sort_keys=False, indent=None, separators=None, default=None)

Bases: JSONEncoder

default(o)

Implement this method in a subclass such that it returns a serializable object for o, or calls the base implementation (to raise a TypeError).

For example, to support arbitrary iterators, you could implement default like this:

def default(self, o):
    try:
        iterable = iter(o)
    except TypeError:
        pass
    else:
        return list(iterable)
    # Let the base class default method raise the TypeError
    return super().default(o)
py_encode_basestring(s)
classmethod add_dynamic_mod(module, tag, arg, instance=0)
classmethod add_printer_callback(category, module, tag, func, instance=0)
classmethod add_to_store(category, module, tag, arg, instance=0)
classmethod add_tree_mod(module, tag, arg, instance=0)
classmethod browse_to_store(category, module, tag, instance=0)
classmethod dump(mode, instance=0)
classmethod get_dynamic_mod(module, tag, instance=0)
classmethod get_printer_callback(category, module, tag, instance=0)
classmethod get_store(instance=0)
classmethod get_to_store(category, module, tag, instance=0)
classmethod in_restore(category, module, tag, arg)
classmethod init()
classmethod load(restore_outputs)
classmethod none_print(instance=0)
classmethod print_static_module(instance=0)
classmethod replace(store, instance=0)
class asthook.utils.ReadJavaFile

Bases: object

classmethod init(path)
classmethod readline(path, line)
asthook.utils.bprint(text)

Create a beautiful print

asthook.utils.error(elt)
class asthook.utils.extcall

Bases: object

classmethod external_call(call)
asthook.utils.good(elt)
asthook.utils.h2(text)

Create a beautiful print

asthook.utils.hide(elt)
asthook.utils.info(elt)
asthook.utils.raise_timeout(signum, frame)
asthook.utils.timeout(time)

Timeout for avoid eternal loop function

asthook.utils.warning(elt)