$npx skillfedfor your agent

parsimonious

(Soon to be) the fastest pure-Python PEG parser I could muster

With conditionsPyPI LibrariesReleased Nov 20256.9M downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — parsimonious-0.11.0-py3-none-any.whl
v0.11.0 · released 2025-11-12 · 1 runtime deps: regex

Yes, if you need to parse text with a grammar you can define in code and don't want to depend on external tools or compiled parsers. The low install friction, permissive license, and lack of security issues make it a safe choice. The aging maintenance status and alpha classifier mean you should pin the version and be prepared for potential API changes if you upgrade—but the current 0.11.0 is stable for production use if your grammar needs are straightforward.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Low friction: pure-Python wheel with a single runtime dependency (regex).
  • Last release 275 days ago; repository active with 1914 stars and recent commits, though marked as aging rather than actively developed.

License · maintenance · safety

MIT (permissive) — MIT license (permissive): you can use, modify, and distribute Parsimonious in commercial and private projects with minimal restrictions, provided you include the license notice.

last release 2025-11-12 (275 days) · last repo commit 2025-11-12 · 1,914 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 6,931,760 downloads/mo, #1,807 on PyPI

Verify before relying

from parsimonious.grammar import Grammar
from parsimonious.nodes import NodeVisitor

grammar = Grammar(r"""
    expr = ~"[a-z]+"
""")
tree = grammar.parse('hello')
print(tree)
  • Whether performance meets the stated goal of being 'fastest arbitrary-lookahead parser' in practice for real-world grammars
  • Current RAM usage characteristics and whether optimization work mentioned in 'Coming Soon' has been completed
  • Stability of API before 1.0 release and whether pinning to 0.11.0 is necessary to avoid breakage
Same gist for agents: .md · .json

What it is and what it does

Parsimonious is a parsing library built on parsing expression grammars (PEGs)—a simplified EBNF notation you write as strings to define what text patterns to recognize. You give it a grammar and text, and it returns an abstract syntax tree (AST) representing the structure it found. The library separates parsing from interpretation: once you have a tree, you walk it with a NodeVisitor subclass to extract data or transform it however you need—render to HTML, extract key-value pairs, build an intermediate representation, or anything else.

The package is designed for speed and low memory use in pure Python, with no external parser generator or lexer step required. It handles arbitrary lookahead and right recursion automatically, making grammars simpler to write than with tools like Yacc. The library is mature in core functionality (test coverage is good, error reporting works), though marked as alpha and with a note that API changes are possible before 1.0.

Use it for

  • Parse configuration files (INI, TOML-like formats) and extract structured data into Python dicts or objects
  • Build a domain-specific language (DSL) parser for custom query syntax, template languages, or markup formats
  • Parse wiki markup or other text formats and transform them to HTML, plain text, or other output formats
  • Validate and extract data from semi-structured text (logs, reports, data feeds) according to a grammar you define
  • Implement a simple expression evaluator or calculator by parsing arithmetic or logical expressions into an AST

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you need to parse text with a grammar you can define in code and don't want to depend on external tools or compiled parsers.

The low install friction, permissive license, and lack of security issues make it a safe choice. The aging maintenance status and alpha classifier mean you should pin the version and be prepared for potential API changes if you upgrade—but the current 0.11.0 is stable for production use if your grammar needs are straightforward.

Install

parsimonious on PyPI

Before you install

Low friction: pure-Python wheel with a single runtime dependency (regex). Last release 275 days ago; repository active with 1914 stars and recent commits, though marked as aging rather than actively developed.

License in practice

MIT license (permissive): you can use, modify, and distribute Parsimonious in commercial and private projects with minimal restrictions, provided you include the license notice.

Quickstart

from parsimonious.grammar import Grammar
from parsimonious.nodes import NodeVisitor

grammar = Grammar(r"""
    expr = ~"[a-z]+"
""")
tree = grammar.parse('hello')
print(tree)

Verify before relying

  • Whether performance meets the stated goal of being 'fastest arbitrary-lookahead parser' in practice for real-world grammars
  • Current RAM usage characteristics and whether optimization work mentioned in 'Coming Soon' has been completed
  • Stability of API before 1.0 release and whether pinning to 0.11.0 is necessary to avoid breakage

Package facts

LicenseMIT permissive
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependencies
1 package
regex
MaintenanceAging 275 days since the last release
Last repo commit
First released
Downloads6,931,760 / month, #1,807 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 3 - AlphaIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Scientific/Engineering :: Information AnalysisTopic :: Software Development :: LibrariesTopic :: Text Processing :: General

Evidence: parsimonious-0.11.0-py3-none-any.whl

Tags

Capabilities
peg parser pythonparsing expression grammartext parsing librarygrammar-based parserast tree builderebnf parser pure pythonpackrat parsing
Topics
parser-generatorgrammar-basedast-builder
PyPI keywords
parseparserparsingpegpackratgrammarlanguage

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “grammar-based parser”

  • parsimoniousParsimonious is a pure-Python PEG (parsing expression grammar) parser…
  • pyPEG2pyPEG2 is a PEG (Parsing Expression Grammar) parser generator that…
  • spark-parserImplements an Earley algorithm parser for context-free grammars with…

Give your agent the search over MCP, or paste the wish link into any chat.

More Libraries packages

urllib3 Worth it
PyPI · Libraries · released May 2026

urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.

MITpure Python · 3.10+
1.8Bdownloads / mo
requests Worth it
PyPI · Libraries · released May 2026

Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.

Apache-2.0pure Python · 3.10+
1.8Bdownloads / mo
pluggy Worth it
PyPI · Libraries · released May 2025

Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.

Install it if you're building an extensible application or framework.

MITpure Python · 3.9+aging
1.3Bdownloads / mo
python-dateutil Worth it
PyPI · Libraries · released Mar 2024

Provides parsing, arithmetic, and recurrence rule computation for dates and times, with timezone support and iCalendar RFC compliance.

Install it if you need to parse flexible date strings, compute relative dates, handle timezones, or work with recurrence rules—it's the de facto choice for these tasks.

Apache-2.0pure Python
1.2Bdownloads / mo
six With conditions
PyPI · Libraries · released Dec 2024

Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.

MITpure Python
1.2Bdownloads / mo
pytest Worth it
PyPI · Libraries · released Jun 2026

pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.

MITpure Python · 3.10+
1.1Bdownloads / mo

See also PyMeta3 · pyPEG2 · mo-parsing · Parsley · pyparsing · Arpeggio · parsy · textX · pygmars · TatSu