{"categories":[{"label":"Libraries","url":"https://skillfed.io/packages/category/software-development-libraries/2"},{"label":"Information Analysis","url":"https://skillfed.io/packages/category/scientific-engineering-information-analysis"},{"label":"General","url":"https://skillfed.io/packages/category/text-processing-general"}],"enrichment":{"capability":"Parsimonious is a pure-Python PEG (parsing expression grammar) parser that builds abstract syntax trees from text according to grammar rules you define, with no external lexer or parser generator required.","skillfed_tags":["parser-generator","grammar-based","ast-builder"],"use_cases":["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"],"what_it_does":"Parsimonious is a parsing library built on parsing expression grammars (PEGs)\u2014a 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\u2014render to HTML, extract key-value pairs, build an intermediate representation, or anything else.\n\nThe 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.","worth_installing":"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\u2014but the current 0.11.0 is stable for production use if your grammar needs are straightforward."},"id":"parsimonious","links":{"html":"https://skillfed.io/packages/parsimonious","md":"https://skillfed.io/packages/parsimonious.md","pypi":"https://pypi.org/project/parsimonious/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2025-11-12","license_spdx":null,"license_treatment":"permissive","name":"parsimonious","python_support":"unspecified","summary":"(Soon to be) the fastest pure-Python PEG parser I could muster"},"popularity":{"monthly_downloads":6931760,"position":1807,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.11.0"}
