importlib.util.module_for_loader()
  • References/Python/Python/Importing

@importlib.util.module_for_loader A decorator for importlib.abc.Loader.load_module()

2025-01-10 15:47:30
runpy.run_path()
  • References/Python/Python/Importing

runpy.run_path(file_path, init_globals=None, run_name=None) Execute the code at the named filesystem location and return the

2025-01-10 15:47:30
importlib.abc.ExecutionLoader
  • References/Python/Python/Importing

class importlib.abc.ExecutionLoader An abstract base class which inherits from InspectLoader that, when implemented

2025-01-10 15:47:30
importlib.abc.ResourceLoader.get_data()
  • References/Python/Python/Importing

abstractmethod get_data(path) An abstract method to return the bytes for the data located at path. Loaders that have

2025-01-10 15:47:30
importlib.abc.Loader.load_module()
  • References/Python/Python/Importing

load_module(fullname) A legacy method for loading a module. If the module cannot be loaded,

2025-01-10 15:47:30
importlib.abc.Loader.exec_module()
  • References/Python/Python/Importing

exec_module(module) An abstract method that executes the module in its own namespace when a module is imported or reloaded.

2025-01-10 15:47:30
pkgutil.iter_modules()
  • References/Python/Python/Importing

pkgutil.iter_modules(path=None, prefix='') Yields (module_finder, name, ispkg) for all submodules on path

2025-01-10 15:47:30
pkgutil.iter_importers()
  • References/Python/Python/Importing

pkgutil.iter_importers(fullname='') Yield

2025-01-10 15:47:30
pkgutil.get_data()
  • References/Python/Python/Importing

pkgutil.get_data(package, resource) Get a resource from a package. This is a wrapper for the

2025-01-10 15:47:30
importlib.abc.SourceLoader.exec_module()
  • References/Python/Python/Importing

exec_module(module) Concrete implementation of Loader.exec_module(). New

2025-01-10 15:47:30