Comparison
google-pasta vs gritql vs libcst vs parso
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
pasta is an AST-based Python refactoring library
Archived. The repository is read-only: no more fixes or releases will come.
pip install google-pastaPython 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 libcstA Python Parser
Maintained. Last release 7 months ago, commits in 3 of the last 26 weeks. Weaker on commit activity and release cadence.
pip install parsoIn short
- google-pasta is archived: avoid it for new projects.
- gritql is slowing down (last release over 2 years ago): fine for existing code, risky for a new project.
- parso is the most used: 118.9M downloads a month, 3.3× more than libcst.
- Maintenance is comparable: parso 53, libcst 51 on Pythie’s Index.
- parso is growing fastest: downloads +10% over the last month.
Side by side
| Metric | google-pasta | gritql | libcst | parso |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 3 | 27 |