Skip to content
Back to AI in Practice

Python Source Code Atlas

Follow a Python call graph and inspect the source lines behind each connection.

  • Python
  • Static analysis
  • AST
  • Lezer
Open tool (Korean interface)

The problem

In an unfamiliar Python project, where is a particular function called, and which source line supports the answer?

My role

AI-assisted browser tool

Technology choices

Lezer syntax trees retain source positions for definitions and calls. A Web Worker analyzes local files within the browser.

Implementation & decisions

The analyzer collects definitions and calls from Lezer syntax trees and resolves modules, aliases and relative imports. The graph distinguishes resolved calls from uncertain ones.

Result

The bundled example links call paths to exact lines in a pinned public commit. Local-folder analysis also runs entirely in the browser.

Evidence

Analyzer and tests, pinned example source, call sites and line numbers

My contribution

The portfolio publishes the analyzer and its checks. The example Python program comes from asottile/add-trailing-comma.

AI collaboration

The portfolio identifies this as AI-assisted development. The public record does not assign individual implementation or review steps to a person or model.

Limitations

Static analysis cannot resolve every dynamic call. For large graphs, the view starts with the area around the selected path.

Next steps

For an unresolved connection, the evidence panel points to the call site for manual inspection.

Sources & evidence