Comparison
lark vs ply vs pyPEG2 vs spark-parser
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
a modern parsing library
Maintained. Last release 13 months ago, commits in 10 of the last 26 weeks. Weaker on recent releases and issue handling.
pip install larkPython Lex & Yacc
Likely abandoned. No release or commit for years (last release over 8 years ago).
pip install plyAn intrinsic PEG Parser-Interpreter for Python
Likely abandoned. No release or commit for years (last release over 11 years ago).
pip install pypeg2An Earley-Algorithm Context-free grammar Parser Toolkit
Slowing down. Last release over 2 years ago, little activity since. Fine for existing code; think twice for a new project.
pip install spark-parserIn short
- ply looks abandoned: avoid it for new projects.
- pyPEG2 looks abandoned: avoid it for new projects.
- spark-parser is slowing down (last release over 2 years ago): fine for existing code, risky for a new project.
- lark is the most used: 98M downloads a month, 3.4× more than ply.
- lark also has the best Pythie’s Index (44).
- lark is growing fastest: downloads +19% over the last month.
Side by side
| Metric | lark | ply | pyPEG2 | spark-parser |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 44 | 19 |