Module ImportFrom alias alias alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias alias alias ImportFrom alias alias alias ImportFrom alias ImportFrom alias alias alias alias ImportFrom alias alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore NameStore NameStore NameStore NameStore NameStore Call NameLoad Expr Call NameLoad keyword NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr orelse If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad orelse If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body If UnaryOpNot Call NameLoad NameLoad Str body Assign AttributeStore NameLoad attr Call NameLoad Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Expr Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call NameLoad Call AttributeLoad NameLoad attr Str Assign TupleStore NameStore NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr For NameStore NameLoad body Expr Call NameLoad Call AttributeLoad Str attr Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad SubscriptLoad NameLoad Index NameLoad keyword ListLoad Str Str Str If NameLoad body Assign NameStore Call AttributeLoad Str attr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad AugAssignAdd NameStore Str Expr Call NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Expr Call NameLoad Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad For NameStore Call AttributeLoad NameLoad attr NameLoad body If Call AttributeLoad NameLoad attr NameLoad Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If UnaryOpNot NameLoad body Expr Call NameLoad Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Expr Call NameLoad Call AttributeLoad NameLoad attr Str Assign NameStore DictComp SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num comprehension TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr For NameStore NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad If BoolOpAnd CompareEq NameLoad Str CompareIn NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad NameLoad Expr Call NameLoad Call AttributeLoad NameLoad attr Str Expr Call NameLoad Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad NameLoad NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call NameLoad Call AttributeLoad NameLoad attr Str Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Assign NameStore Str Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr NameLoad If NameLoad body Expr Call NameLoad Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr If CompareIn NameLoad TupleLoad Str Str body Expr Call NameLoad Call AttributeLoad NameLoad attr Str For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad With Call NameLoad NameStore body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListComp AttributeLoad NameLoad attr comprehension NameStore NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad If CompareIn NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad For NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call NameLoad Call AttributeLoad NameLoad attr Str Delete NameDel If BoolOpAnd NameLoad CompareIn NameLoad TupleLoad Str Str body Expr Call AttributeLoad NameLoad attr BinOpBitOr NameLoad AttributeLoad NameLoad attr If NameLoad body Expr Call NameLoad Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign TupleStore NameStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr If CompareIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad If CompareIn NameLoad AttributeLoad NameLoad attr body Assign TupleStore NameStore NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad SubscriptLoad NameLoad Index NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad Num SubscriptLoad NameLoad Index NameLoad Expr Call AttributeLoad NameLoad attr Str Return TupleLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr With Call NameLoad AttributeLoad NameLoad attr Str NameStore body Expr Call AttributeLoad NameLoad attr Str For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr ListComp Call AttributeLoad Str attr NameLoad comprehension NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad AttributeLoad NameLoad attr orelse If NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If CompareIn NameLoad NameLoad body Return ListLoad SubscriptLoad NameLoad Index Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Str For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad If BoolOpOr UnaryOpNot NameLoad Call AttributeLoad NameLoad attr Str body Continue If CompareIn NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If Call NameLoad NameLoad body Continue Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Expr Call NameLoad Call AttributeLoad Str attr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad Str attr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body If Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str NameStore body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body If UnaryOpNot Call NameLoad NameLoad Str body Return With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Str If NameLoad body AugAssignAdd NameStore Str Expr Call NameLoad Call AttributeLoad Str attr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad Str attr NameLoad keyword Str orelse AugAssignAdd NameStore Str Expr Call NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list FunctionDef arguments args defaults body Expr Call NameLoad decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A __future__ print_function division absolute_import N/A os N/A sys N/A fnmatch N/A codecs cmd parse_args reqs project_import_modules is_stdlib get_installed_pkgs_detail pypi update_db check_latest_version search_names db database utils Color parse_reqs print_table lines_diff log logger enable_pretty_logging modules ReqsModules Main N/A object N/A __init__ N/A N/A self N/A N/A N/A N/A log_level updatedb check_path names ignores save_path project_path N/A parse_args N/A N/A enable_pretty_logging log_level log_level N/A updatedb N/A N/A N/A N/A self update_db N/A N/A check_path N/A N/A N/A N/A self check_reqs_latest_version check_path ignores N/A N/A names N/A N/A N/A N/A self search_package_by_name names N/A N/A N/A N/A self generate_reqs save_path project_path ignores N/A installed_pkgs N/A N/A self N/A N/A N/A N/A N/A hasattr self _installed_pkgs N/A N/A N/A self _installed_pkgs N/A get_installed_pkgs_detail N/A N/A self _installed_pkgs N/A property update_db N/A N/A self N/A N/A N/A Update database. N/A N/A update_db N/A search_package_by_name N/A N/A self names N/A N/A N/A Search package name by import name. N/A N/A print N/A N/A Color BLUE Starting search names ... N/A N/A found not_found N/A search_names names N/A self installed_pkgs N/A name found N/A N/A N/A print N/A N/A Found package(s) for "{0}": format N/A N/A Color GREEN name N/A N/A print_table N/A found N/A name headers N/A PACKAGE VERSION WHERE N/A not_found N/A N/A msg N/A N/A "{0}" not found.
 format N/A N/A Color RED N/A N/A ,  join not_found N/A msg Maybe you need update database. N/A N/A print N/A N/A Color YELLOW msg N/A check_reqs_latest_version N/A N/A self check_path ignores N/A N/A N/A Check requirements latest version. N/A N/A print N/A N/A Color BLUE Starting check requirements latest version ... N/A files N/A list N/A reqs N/A dict N/A pkg_versions N/A list N/A N/A N/A N/A os path isdir check_path N/A N/A N/A print N/A N/A Color BLUE N/A N/A Searching file in "{0}" ... format check_path N/A fn N/A N/A os listdir check_path N/A N/A N/A N/A fnmatch fnmatch fn *requirements.txt N/A N/A N/A N/A files append N/A N/A N/A os path abspath fn N/A N/A files N/A N/A N/A print N/A N/A Color YELLOW Requirements file not found, generate requirements ... N/A save_path N/A N/A N/A os path join check_path requirements.txt N/A N/A N/A self generate_reqs save_path check_path ignores N/A N/A N/A files append save_path N/A N/A N/A N/A files append check_path N/A fpath files N/A N/A N/A N/A reqs update N/A parse_reqs fpath N/A N/A print N/A N/A Color BLUE Checking requirements latest version ... N/A installed_pkgs N/A N/A v N/A 0 N/A v N/A 1 N/A N/A k v N/A N/A N/A self installed_pkgs items N/A pkg reqs N/A N/A current N/A reqs N/A pkg N/A N/A N/A current N/A pkg installed_pkgs N/A N/A current N/A installed_pkgs N/A pkg N/A N/A N/A logger info N/A N/A Checking "{0}" latest version ... format pkg N/A latest N/A check_latest_version pkg N/A N/A N/A pkg_versions append N/A pkg current latest N/A N/A print N/A N/A Color BLUE Checking requirements latest version done. N/A N/A print N/A N/A print_table pkg_versions N/A generate_reqs N/A N/A self save_path check_path ignores N/A N/A N/A gr N/A GenerateReqs save_path check_path ignores N/A self installed_pkgs N/A N/A N/A gr generate_reqs N/A N/A GenerateReqs N/A object N/A __init__ N/A N/A self save_path project_path ignores installed_pkgs N/A N/A N/A N/A self _save_path save_path N/A N/A self _project_path project_path N/A N/A self _ignores ignores N/A N/A self _installed_pkgs installed_pkgs N/A N/A self _maybe_local_mods N/A set N/A generate_reqs N/A N/A self N/A N/A N/A Generate requirements for `project_path`, save file in
        `save_path`.
         N/A N/A print N/A N/A Color BLUE Starting generate requirements ... N/A N/A reqs try_imports guess N/A N/A self extract_reqs N/A in_pypi N/A set N/A answer n N/A pyver None N/A N/A N/A guess remove try_imports N/A guess N/A N/A N/A print N/A N/A Color RED The following modules are not found yet: N/A N/A N/A self _invalid_reqs guess N/A msg N/A N/A Some of them may not install in local environment.
Try to search PyPI for the missing modules and filter some unnecessary modules? (y/[N])  format pyver N/A N/A N/A N/A sys stdout write N/A N/A Color RED msg N/A N/A N/A N/A sys stdout flush N/A answer N/A N/A N/A sys stdin readline N/A answer N/A N/A N/A N/A answer strip lower N/A N/A answer N/A y yes N/A N/A N/A print N/A N/A Color BLUE Checking modules on the PyPI... N/A N/A name detail N/A N/A guess sorted_items N/A N/A N/A N/A logger info N/A N/A Checking {0} on the PyPI ... format name N/A N/A database db N/A N/A rows N/A N/A db query_all name N/A pkgs N/A N/A row package N/A row rows N/A pkgs N/A N/A N/A N/A in_pypi add name N/A N/A name N/A self _maybe_local_mods N/A N/A N/A N/A N/A self _maybe_local_mods remove name N/A pkg N/A N/A self _best_matchs name pkgs N/A N/A latest N/A check_latest_version pkg N/A N/A N/A reqs add pkg latest N/A detail comments N/A N/A N/A self _save_old_reqs N/A N/A N/A self _write_reqs reqs N/A N/A N/A self _reqs_diff N/A N/A print N/A N/A Color BLUE Generate requirements done! N/A reqs N/A N/A guess N/A answer N/A y yes N/A N/A N/A N/A guess remove N/A in_pypi N/A self _maybe_local_mods N/A guess N/A N/A N/A print N/A N/A Color RED These modules are not found: N/A N/A N/A self _invalid_reqs guess N/A N/A print N/A N/A Color RED Maybe or you need update database. N/A extract_reqs N/A N/A self N/A N/A N/A Extract requirements from project. N/A reqs N/A ReqsModules N/A guess N/A ReqsModules N/A N/A modules try_imports local_mods N/A project_import_modules N/A self _project_path N/A self _ignores N/A app_name N/A N/A N/A os path basename N/A self _project_path N/A N/A app_name local_mods N/A N/A N/A N/A local_mods remove app_name N/A candidates N/A N/A self _filter_modules modules local_mods N/A N/A N/A logger info Check module in local environment. N/A name candidates N/A N/A N/A N/A logger info N/A N/A Checking module: {0} format name N/A N/A name N/A self _installed_pkgs N/A N/A N/A pkg_name version N/A N/A self _installed_pkgs N/A name N/A N/A N/A reqs add pkg_name version N/A modules N/A name N/A N/A N/A N/A guess add name 0 N/A modules N/A name N/A N/A N/A logger info Finish local environment checking. N/A N/A reqs try_imports guess N/A _write_reqs N/A N/A self reqs N/A N/A N/A N/A print N/A N/A Color BLUE N/A N/A Writing requirements to "{0}" format N/A self _save_path N/A N/A open N/A self _save_path w+ f N/A N/A N/A N/A f write # Requirements automatically generated by pigar.
# https://github.com/Damnever/pigar
 N/A N/A k v N/A N/A reqs sorted_items N/A N/A N/A N/A f write N/A N/A N/A f write N/A N/A join N/A N/A N/A # {0}
 format c N/A c N/A N/A N/A v comments sorted_items N/A N/A k -e N/A N/A N/A N/A f write N/A N/A {0} {1}
 format k N/A v version N/A N/A v N/A N/A N/A N/A f write N/A N/A {0} == {1}
 format k N/A v version N/A N/A N/A N/A f write N/A N/A {0}
 format k N/A _best_matchs N/A N/A self name pkgs N/A N/A N/A N/A name pkgs N/A N/A N/A N/A pkgs N/A N/A N/A pkgs index name N/A pkgs N/A _filter_modules N/A N/A self modules local_mods N/A N/A N/A candidates N/A set N/A N/A N/A logger info Filtering modules ... N/A module modules N/A N/A N/A N/A logger info N/A N/A Checking module: {0} format module N/A N/A N/A module N/A N/A module startswith . N/A N/A N/A N/A module local_mods N/A N/A N/A N/A N/A self _maybe_local_mods add module N/A N/A is_stdlib module N/A N/A N/A N/A N/A candidates add module N/A candidates N/A _invalid_reqs N/A N/A self reqs N/A N/A N/A N/A name detail N/A N/A reqs sorted_items N/A N/A N/A print N/A N/A   {0} referenced from:
    {1} format N/A N/A Color YELLOW name N/A N/A join N/A N/A N/A detail comments sorted_items N/A _save_old_reqs N/A N/A self N/A N/A N/A N/A N/A N/A os path isfile N/A self _save_path N/A N/A N/A N/A codecs open N/A self _save_path rb utf-8 f N/A N/A N/A self _old_reqs N/A N/A f readlines N/A _reqs_diff N/A N/A self N/A N/A N/A N/A N/A hasattr self _old_reqs N/A N/A N/A N/A N/A codecs open N/A self _save_path rb utf-8 f N/A N/A new_reqs N/A N/A f readlines N/A N/A is_diff diffs N/A lines_diff N/A self _old_reqs new_reqs N/A msg Requirements file has been covered,  N/A is_diff N/A N/A msg there is the difference: N/A N/A print N/A N/A {0}
{1} format N/A N/A Color YELLOW msg N/A N/A join diffs end N/A N/A msg no difference. N/A N/A print N/A N/A Color YELLOW msg N/A N/A main N/A N/A N/A N/A N/A N/A Main N/A N/A N/A __name__ __main__ N/A N/A N/A main