pyparsing

Text parsing and grammar framework that lets you define grammars in Python code — a readable alternative to raw regex for structured text.

regex-frameworksNew to PyRadar
59
Hero Score
Popularity
70
Performance
30
Ecosystem
50
Maturity
85
Dev Experience
57
⭐ 2,472 stars⬇ 79.6M downloads/wkFirst release: Dec 2003Last release: Jan 2026
Async Support: NoPlugin Extensions: MediumSpeed: MediumDoc Quality: HighLearning Curve: Medium

Pros

  • Grammar-based approach creates highly readable parsers for structured text formats
  • Powerful features for nested expressions, whitespace handling, and parse tree generation
  • Extensive documentation and large ecosystem with 45M+ weekly downloads

Cons

  • Overkill for simple pattern matching tasks where regex is sufficient
  • Slower performance than compiled regex for straightforward text extraction
  • Steeper learning curve requires understanding parsing concepts beyond regex

Alternatives in regex-frameworks

Compare Python Packages with ease.