Comparison
baron vs libcst vs openrewrite vs redbaron
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 baronA 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 today, commits in 26 of the last 26 weeks. A safe choice.
pip install openrewriteAbstraction on top of baron, a FST for python to make writing refactoring code a realistic task
Likely abandoned. No release or commit for years (last release over 7 years ago).
pip install redbaronIn short
- baron looks abandoned: avoid it for new projects.
- redbaron looks abandoned: avoid it for new projects.
- libcst is the most used: 35.7M downloads a month, 152× more than baron.
- openrewrite is better maintained: Pythie’s Index 86 against 52.
Side by side
| Metric | baron | libcst | openrewrite | redbaron |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 13 | 52 |