seddonym / grimp

Builds a graph of a Python project's internal dependencies.
https://grimp.readthedocs.io
BSD 2-Clause "Simplified" License
54 stars 12 forks source link

Investigate using LibCST instead of AST #127

Open seddonym opened 1 year ago

seddonym commented 1 year ago

LibCST, based on Rust, is a fast static analysis library. It might be worth experimenting with it to see if it speeds up building of the graph.

https://libcst.readthedocs.io/en/latest/

This would probably be a case of making a new Import Scanner. Here's the one that uses AST. https://github.com/seddonym/grimp/blob/master/src/grimp/adaptors/importscanner.py