{
    "content": [
        {
            "type": "text",
            "text": "# modulefinder (pydoc)\n\n**Summary:** modulefinder - Find modules used by a script, using introspection.\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **MODULE REFERENCE** (8 lines)\n- **CLASSES** (4 lines) — 2 subsections\n  - class Module (19 lines)\n  - class ModuleFinder (72 lines)\n- **FUNCTIONS** (5 lines) — 1 subsections\n  - test (1 lines)\n- **DATA** (9 lines)\n- **FILE** (3 lines)\n\n## Full Content\n\n### NAME\n\nmodulefinder - Find modules used by a script, using introspection.\n\n### MODULE REFERENCE\n\nhttps://docs.python.org/3.10/library/modulefinder.html\n\nThe following documentation is automatically generated from the Python\nsource files.  It may be incomplete, incorrect or include features that\nare considered implementation detail and may vary between Python\nimplementations.  When in doubt, consult the module reference at the\nlocation listed above.\n\n### CLASSES\n\nbuiltins.object\nModule\nModuleFinder\n\n#### class Module\n\n|  Module(name, file=None, path=None)\n|\n|  Methods defined here:\n|\n|  init(self, name, file=None, path=None)\n|      Initialize self.  See help(type(self)) for accurate signature.\n|\n|  repr(self)\n|      Return repr(self).\n|\n|  ----------------------------------------------------------------------\n|  Data descriptors defined here:\n|\n|  dict\n|      dictionary for instance variables (if defined)\n|\n|  weakref\n|      list of weak references to the object (if defined)\n\n#### class ModuleFinder\n\n|  ModuleFinder(path=None, debug=0, excludes=None, replacepaths=None)\n|\n|  Methods defined here:\n|\n|  init(self, path=None, debug=0, excludes=None, replacepaths=None)\n|      Initialize self.  See help(type(self)) for accurate signature.\n|\n|  addmodule(self, fqname)\n|\n|  anymissing(self)\n|      Return a list of modules that appear to be missing. Use\n|      anymissingmaybe() if you want to know which modules are\n|      certain to be missing, and which *may* be missing.\n|\n|  anymissingmaybe(self)\n|      Return two lists, one with modules that are certainly missing\n|      and one with modules that *may* be missing. The latter names could\n|      either be submodules *or* just global names in the package.\n|\n|      The reason it can't always be determined is that it's impossible to\n|      tell which names are imported when \"from module import *\" is done\n|      with an extension module, short of actually importing it.\n|\n|  determineparent(self, caller, level=-1)\n|\n|  ensurefromlist(self, m, fromlist, recursive=0)\n|\n|  findallsubmodules(self, m)\n|\n|  findheadpackage(self, parent, name)\n|\n|  findmodule(self, name, path, parent=None)\n|\n|  importhook(self, name, caller=None, fromlist=None, level=-1)\n|\n|  importmodule(self, partname, fqname, parent)\n|\n|  loadfile(self, pathname)\n|\n|  loadmodule(self, fqname, fp, pathname, fileinfo)\n|\n|  loadpackage(self, fqname, pathname)\n|\n|  loadtail(self, q, tail)\n|\n|  msg(self, level, str, *args)\n|\n|  msgin(self, *args)\n|\n|  msgout(self, *args)\n|\n|  replacepathsincode(self, co)\n|\n|  report(self)\n|      Print a report to stdout, listing the found modules with their\n|      paths, as well as modules that are missing, or seem to be missing.\n|\n|  runscript(self, pathname)\n|\n|  scancode(self, co, m)\n|\n|  scanopcodes(self, co)\n|\n|  ----------------------------------------------------------------------\n|  Data descriptors defined here:\n|\n|  dict\n|      dictionary for instance variables (if defined)\n|\n|  weakref\n|      list of weak references to the object (if defined)\n\n### FUNCTIONS\n\nAddPackagePath(packagename, path)\n# A Public interface\n\nReplacePackage(oldname, newname)\n\n#### test\n\n### DATA\n\nEXTENDEDARG = 144\nIMPORTNAME = 108\nLOADCONST = 100\nSTOREGLOBAL = 97\nSTORENAME = 90\nSTOREOPS = (90, 97)\npackagePathMap = {}\nreplacePackageMap = {}\n\n### FILE\n\n/usr/lib/python3.10/modulefinder.py\n\n"
        }
    ],
    "structuredContent": {
        "command": "modulefinder",
        "section": "",
        "mode": "pydoc",
        "summary": "modulefinder - Find modules used by a script, using introspection.",
        "synopsis": null,
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "MODULE REFERENCE",
                "lines": 8,
                "subsections": []
            },
            {
                "name": "CLASSES",
                "lines": 4,
                "subsections": [
                    {
                        "name": "class Module",
                        "lines": 19
                    },
                    {
                        "name": "class ModuleFinder",
                        "lines": 72
                    }
                ]
            },
            {
                "name": "FUNCTIONS",
                "lines": 5,
                "subsections": [
                    {
                        "name": "test",
                        "lines": 1
                    }
                ]
            },
            {
                "name": "DATA",
                "lines": 9,
                "subsections": []
            },
            {
                "name": "FILE",
                "lines": 3,
                "subsections": []
            }
        ]
    }
}