MCPcopy Create free account
hub / github.com/Graphify-Labs/graphify / extract_python

Function extract_python

graphify/extract.py:5853–5858  ·  view source on GitHub ↗

Extract classes, functions, and imports from a .py file via tree-sitter AST.

(path: Path)

Source from the content-addressed store, hash-verified

5851# ── Public API ────────────────────────────────────────────────────────────────
5852
5853def extract_python(path: Path) -> dict:
5854 """Extract classes, functions, and imports from a .py file via tree-sitter AST."""
5855 result = _extract_generic(path, _PYTHON_CONFIG)
5856 if "error" not in result:
5857 _extract_python_rationale(path, result)
5858 return result
5859
5860
5861def extract_js(path: Path) -> dict:

Calls 2

_extract_genericFunction · 0.85