pyparsing/pyparsing
Some data may be outdated — see provenance labels.
Python library for creating PEG parsers observed · 2026-09-26
Health v2 · maintenance only
92/100
- Activity 95
- Release rhythm 84
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-10-21. Adoption (stars, forks) is never an input.
- gap_med: 55.5
- age_days: 3446
- days_rel: 30
- days_push: 30
- n_releases_24m: 9
Adoption not part of the score
2492 stars · 342 forks observed · 2026-09-26
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-09-26 · a54fcf38a7d5
- registry_pypi: https://pypi.org/pypi/pyparsing/json · fetched 2026-08-29 · d1d77af4b699
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| pyparsing/pyparsing | main | 92 |
For agents
markdown · JSON · MCP: product_card(name="pyparsing/pyparsing")
Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem