Comparison
baron vs gritql vs libcst
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Full Syntax Tree for python to make writing refactoring code a realist task
Likely abandoned. No release or commit for years (last release over 4 years ago).
$
pip install baronPython bindings for GritQL
Slowing down. Last release over 2 years ago, little activity since. Fine for existing code; think twice for a new project.
$
pip install gritqlA concrete syntax tree with AST-like properties for Python 3.0 through 3.15 programs.
Maintained. Last release 4 months ago, commits in 5 of the last 26 weeks. Weaker on commit activity and issue handling.
$
pip install libcstIn short
- baron looks abandoned: avoid it for new projects.
- gritql is slowing down (last release over 2 years ago): fine for existing code, risky for a new project.
- libcst is the most used: 35.7M downloads a month, 152× more than baron.
- libcst also has the best Pythie’s Index (54).