pyparsing/pyparsing
Python library for creating PEG parsers observed · 2026-08-28
Health v2 · maintenance only
83/100
- Activity 98
- Release rhythm 54
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 54.0
- age_days: 3398
- days_rel: 224
- days_push: 15
- n_releases_24m: 9
Adoption not part of the score
2485 stars · 323 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
pyparsing is a Python library for building Parsing Expression Grammar (PEG) parsers directly in Python code using composable classes and operators. It offers a readable alternative to lex/yacc or regex-based parsing, handling whitespace, quoted strings, and embedded comments automatically.
Use cases
- parse structured text like config files or log formats in Python
- build a DSL or small language parser without lex/yacc
- parse SQL or algebraic expressions
- replace fragile regex parsing with a real grammar
- extract fields from text with readable grammar definitions
When to choose
- you want to define grammars directly in readable Python code
- you need a lightweight pure-Python parser with no build step
- your grammar is small to medium complexity
- you want quick parsing of text formats like config files or formulas
When to avoid
- you need maximum parsing performance for large inputs
- you require full lexer/parser tooling like error recovery of yacc-grade tools
- you are parsing very large or complex grammars where a generator like ANTLR fits better
Facets
library · maturity stable
parser parsers programming-languages developer-tools python cross-platform peg parser-combinators text-processing grammar
2 sources
- readme: https://github.com/pyparsing/pyparsing · fetched 2026-08-28 · a54fcf38a7d5
- registry_pypi: https://pypi.org/pypi/pyparsing/json · fetched 2026-08-29 · d1d77af4b699
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| pyparsing/pyparsing | main | 83 |
For agents
markdown · JSON · MCP: product_card(name="pyparsing/pyparsing")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem