tree-sitter-stack-graphs-python 0.3.0

Stack graphs definition for Python using tree-sitter-python
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# --- path: foo/__init__.py ---
from . import bar
#             ^ defined: 6

# --- path: foo/bar/__init__.py ---
BAR = 'b'

# --- path: main.py ---
from foo import bar
#               ^ defined: 6

bar.BAR
# ^ defined: 9, 6
#     ^ defined: 6