Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

python

Scans Python source files for import and from ... import statements and adds dependencies on local Python modules.

Native: Yes.

Auto-detects: Projects with .py files.

Features

  • Resolves imports to local files (ignores stdlib / external packages)
  • Supports both import foo and from foo import bar syntax
  • Searches relative to the source file and project root

Configuration

[analyzer.python]
# currently no tunables