Module Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias Import alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body Return TupleLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Return NameLoad For NameStore TupleLoad Str Str body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body With Call NameLoad NameLoad Str NameStore body Return Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad NameLoad Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign NameStore ListLoad If UnaryOpNot NameLoad body Assign NameStore ListLoad Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore ListLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad For NameStore NameLoad body Assign NameStore NameLoad TryExcept body Assign NameStore Call NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad If UnaryOpNot NameLoad body Continue Assign NameStore Num For NameStore NameLoad body If Call NameLoad NameLoad NameLoad body AugAssignAdd NameStore Num If CompareEq NameLoad Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad NameLoad Return NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareIn AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad Return BoolOpAnd NameLoad CompareIn NameLoad NameLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad Return BoolOpAnd NameLoad CompareIn NameLoad NameLoad UnaryOpNot SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad NameLoad Assign NameStore Dict If UnaryOpNot NameLoad body Return For NameStore NameLoad body If SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str body Assign SubscriptStore NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad If NameLoad body Expr Call NameLoad NameLoad NameLoad keyword NameLoad orelse With Call NameLoad NameLoad Str body Pass decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad If UnaryOpNot NameLoad body Raise Call AttributeLoad NameLoad attr Str If CompareNotIn NameLoad NameLoad body Raise Call AttributeLoad NameLoad attr Str NameLoad Assign SubscriptStore SubscriptLoad NameLoad Index NameLoad Index Str NameLoad Expr Call NameLoad NameLoad NameLoad keyword NameLoad Return SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body If UnaryOpNot NameLoad body Return Assign NameStore Call NameLoad AttributeLoad NameLoad attr For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign NameStore IfExp NameLoad Str Str With Call NameLoad NameLoad NameLoad NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args defaults body Return Call AttributeLoad NameLoad attr decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str Assign NameStore Str FunctionDef arguments args NameParam NameParam defaults NameLoad 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 defaults body If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return Call NameLoad BinOpSub AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return Call NameLoad BinOpSub Call NameLoad AttributeLoad NameLoad attr orelse Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body TryExcept body Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Pass Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body If CompareIs AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str If CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Raise Call NameLoad Str Assign NameStore BinOpAdd AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return Call NameLoad Num BinOpSub NameLoad Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body If CompareIs AttributeLoad NameLoad attr NameLoad body Return NameLoad If CompareGt Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Return NameLoad orelse Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return NameLoad If CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Raise Call NameLoad Str Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults body If UnaryOpNot NameLoad body Return For NameStore NameLoad body If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body With Call NameLoad NameLoad Str body Pass decorator_list
N/A N/A logging N/A os N/A sys N/A time watchdog.events FileSystemEventHandler watchdog.observers Observer N/A yaml entropy exceptions N/A LOG N/A N/A logging getLogger __name__ get_filename_and_path N/A N/A path N/A N/A N/A N/A N/A N/A N/A os path dirname path N/A N/A N/A os path basename path N/A get_key_path N/A N/A N/A N/A N/A home_dir N/A N/A N/A os path expanduser ~ N/A ssh_dir N/A N/A N/A os path join home_dir .ssh N/A N/A N/A N/A N/A os path isdir ssh_dir N/A N/A None N/A k N/A id_rsa id_dsa N/A N/A path N/A N/A N/A os path join ssh_dir k N/A N/A N/A N/A os path isfile path N/A N/A path N/A None N/A load_yaml N/A N/A filename N/A N/A N/A N/A open filename rb fh N/A N/A N/A N/A yaml safe_load N/A N/A fh read N/A import_module N/A N/A module_name N/A N/A N/A N/A __import__ module_name N/A N/A N/A sys modules N/A module_name N/A find_module N/A N/A base_name search_paths required_attrs N/A None N/A N/A found_places N/A N/A N/A required_attrs N/A N/A required_attrs N/A N/A real_paths N/A N/A path search_paths N/A N/A real_path N/A N/A path N/A N/A N/A N/A real_path extend N/A N/A path split . N/A N/A N/A real_path append base_name N/A full_path N/A N/A . join real_path N/A N/A N/A real_paths append full_path N/A N/A N/A LOG info Looking for modules %s that have attributes %s real_paths required_attrs N/A full_path real_paths N/A N/A mod None N/A N/A N/A mod N/A import_module full_path N/A N/A N/A ImportError N/A e N/A N/A N/A N/A LOG debug Failed at attempted import of '%s' due to: %s full_path e N/A N/A mod N/A N/A N/A found_attrs 0 N/A attr required_attrs N/A N/A N/A hasattr mod attr N/A N/A found_attrs 1 N/A N/A found_attrs N/A len required_attrs N/A N/A N/A N/A found_places append full_path N/A N/A N/A LOG info Found %s with attributes %s in %s base_name required_attrs found_places N/A found_places N/A WatchdogHandler N/A FileSystemEventHandler N/A __init__ N/A N/A self event_fn N/A N/A N/A N/A self event_fn event_fn N/A on_modified N/A N/A self event N/A N/A N/A N/A N/A event src_path N/A self event_fn N/A N/A N/A N/A N/A self event_fn N/A N/A event src_path N/A N/A N/A N/A LOG error no associated function for %s N/A event src_path N/A N/A watch_dir_for_change N/A N/A dirs_to_watch event_fn N/A N/A N/A event_handler N/A WatchdogHandler event_fn N/A observer N/A Observer N/A directory dirs_to_watch N/A N/A N/A N/A observer schedule event_handler path directory N/A N/A N/A observer setDaemon True N/A N/A N/A observer start N/A observer N/A check_exists_and_enabled N/A N/A name cfg_file N/A N/A N/A engines N/A load_yaml cfg_file N/A N/A engines N/A name engines N/A N/A engines N/A name N/A enabled N/A check_exists_and_disabled N/A N/A name cfg_file N/A N/A N/A engines N/A load_yaml cfg_file N/A N/A engines N/A name engines N/A N/A N/A engines N/A name N/A enabled N/A purge_disabled N/A N/A cfg_file N/A N/A N/A engines N/A load_yaml cfg_file N/A final_engines N/A N/A N/A engines N/A N/A N/A engine engines N/A N/A N/A N/A engines N/A engine N/A enabled N/A N/A N/A final_engines N/A engine N/A engines N/A engine N/A final_engines N/A N/A N/A write_yaml final_engines cfg_file append False N/A N/A N/A open cfg_file w N/A N/A N/A disable_engine N/A N/A name cfg_file N/A N/A N/A engines N/A load_yaml cfg_file N/A N/A engines N/A N/A N/A N/A exceptions NoEnginesException No known engine! N/A N/A name engines N/A N/A N/A N/A exceptions NoSuchEngineException No engines called %s! name N/A N/A N/A engines N/A name N/A enabled False N/A N/A write_yaml engines cfg_file append False N/A N/A N/A engines N/A name N/A pid N/A reset_logger N/A N/A log N/A N/A N/A N/A log N/A N/A N/A handlers N/A list N/A log handlers N/A h handlers N/A N/A N/A N/A h flush N/A N/A N/A h close N/A N/A N/A log removeHandler h N/A N/A N/A log setLevel N/A logging NOTSET N/A N/A N/A log addHandler N/A N/A logging NullHandler N/A write_yaml N/A N/A data filename append N/A True N/A N/A mode N/A append a w N/A N/A open filename mode cfg_file N/A N/A N/A N/A cfg_file write N/A N/A yaml safe_dump data default_flow_style False canonical False N/A wallclock N/A N/A N/A N/A N/A N/A N/A time time N/A StopWatch N/A object N/A N/A A simple timer/stopwatch helper class.

    Inspired by: apache-commons-lang java stopwatch.

    Not thread-safe.
     N/A _STARTED STARTED N/A _STOPPED STOPPED __init__ N/A N/A self duration N/A None N/A N/A N/A self _duration duration N/A N/A self _started_at None N/A N/A self _stopped_at None N/A N/A self _state None N/A start N/A N/A self N/A N/A N/A N/A N/A self _state N/A self _STARTED N/A N/A self N/A N/A self _started_at N/A wallclock N/A N/A self _stopped_at None N/A N/A self _state N/A self _STARTED N/A self N/A elapsed N/A N/A self N/A N/A N/A N/A N/A self _state N/A self _STOPPED N/A N/A N/A float N/A N/A self _stopped_at N/A self _started_at N/A N/A N/A N/A self _state N/A self _STARTED N/A N/A N/A float N/A N/A wallclock N/A self _started_at N/A N/A N/A RuntimeError Can not get the elapsed time of an invalid stopwatch 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 type value traceback N/A N/A N/A N/A N/A N/A N/A self stop N/A N/A N/A RuntimeError N/A N/A N/A False N/A leftover N/A N/A self N/A N/A N/A N/A N/A self _duration None N/A N/A N/A RuntimeError Can not get the leftover time of a watch that has no duration N/A N/A N/A self _state N/A self _STARTED N/A N/A N/A RuntimeError Can not get the leftover time of a stopwatch that has not been started N/A end_time N/A N/A self _started_at N/A self _duration N/A N/A max 0.0 N/A end_time N/A wallclock N/A expired N/A N/A self N/A N/A N/A N/A N/A self _duration None N/A N/A False N/A N/A N/A N/A self elapsed N/A self _duration N/A N/A True N/A False N/A resume N/A N/A self N/A N/A N/A N/A N/A self _state N/A self _STOPPED N/A N/A N/A self _state N/A self _STARTED N/A self N/A N/A N/A RuntimeError Can not resume a stopwatch that has not been stopped N/A stop N/A N/A self N/A N/A N/A N/A N/A self _state N/A self _STOPPED N/A N/A self N/A N/A N/A self _state N/A self _STARTED N/A N/A N/A RuntimeError Can not stop a stopwatch that has not been started N/A N/A self _stopped_at N/A wallclock N/A N/A self _state N/A self _STOPPED N/A self N/A N/A create_files N/A N/A list_of_files N/A N/A N/A N/A list_of_files N/A N/A N/A filename list_of_files N/A N/A N/A N/A N/A N/A os path isfile filename N/A N/A N/A open filename w N/A N/A N/A