importlib.machinery.PathFinder

class importlib.machinery.PathFinder A Finder for sys.path and package __path__ attributes. This class implements the importlib.abc.MetaPathFinder ABC. Only class methods are defined by this class to alleviate the need for instantiation. classmethod find_spec(fullname, path=None, target=None) Class method that attempts to find a spec for the module specified by fullname on sys.path or, if defined, on path. For each path entry that is searched, sys.path_importer_cache is checked. If a non-

importlib.machinery.ModuleSpec.parent

parent

importlib.machinery.ModuleSpec.origin

origin

importlib.machinery.ModuleSpec.name

name

importlib.machinery.ModuleSpec.submodule_search_locations

submodule_search_locations

importlib.machinery.ModuleSpec.loader_state

loader_state

importlib.machinery.ModuleSpec

class importlib.machinery.ModuleSpec(name, loader, *, origin=None, loader_state=None, is_package=None) A specification for a module’s import-system-related state. New in version 3.4. name (__name__) A string for the fully-qualified name of the module. loader (__loader__) The loader to use for loading. For namespace packages this should be set to None. origin (__file__) Name of the place from which the module is loaded, e.g. “builtin” for built-in modules and the filename for

importlib.machinery.ModuleSpec.loader

loader

importlib.machinery.ModuleSpec.has_location

has_location

importlib.machinery.FrozenImporter

class importlib.machinery.FrozenImporter An importer for frozen modules. This class implements the importlib.abc.MetaPathFinder and importlib.abc.InspectLoader ABCs. Only class methods are defined by this class to alleviate the need for instantiation.