Comparison
gritql vs libcst vs openrewrite
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Python 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 4 of the last 26 weeks. Weaker on commit activity and issue handling.
$
pip install libcstOpenRewrite automated refactoring for Python.
Actively maintained. Last release 3 days ago, commits in 26 of the last 26 weeks. A safe choice.
$
pip install openrewriteIn short
- gritql is slowing down (last release over 2 years ago): fine for existing code, risky for a new project.
- libcst is the most used: 36.7M downloads a month, 237× more than gritql.
- openrewrite is better maintained: Pythie’s Index 86 against 52.
Side by side
| Metric | gritql | libcst | openrewrite |
|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 27 | 52 |