Skip to main content

Module python

Module python 

Source
Expand description

Python import resolver.

Resolves dotted module paths to .py files or __init__.py packages. Relative imports (.foo, ..foo) resolve from the importing file’s directory. Absolute imports resolve from the repo root.

Limitation: cannot distinguish stdlib from local modules without a venv scan. All imports are treated as potentially resolvable. False negatives (unresolved count) are acceptable at Layer 0.

Structs§

PythonResolver
Python import resolver for dotted module paths and relative imports.