{"categories":[{"label":"Text Processing","url":"https://skillfed.io/packages/category/text-processing"}],"enrichment":{"capability":"A fast text parser library that lets you define grammars using token specs and parsing rules, then parse text into structured parse trees.","skillfed_tags":["parser-generator","performance-focused","dsl"],"use_cases":["Parse custom configuration or data file formats where you control both the syntax and the grammar rules.","Build domain-specific language (DSL) parsers for internal tools or scripting systems.","Extract structured data from text when regex alone is insufficient but you need faster parsing than general-purpose parser generators.","Implement protocol or message parsers where performance and predictable behavior are important.","Create educational or embedded parsers where you want minimal dependencies and direct control over the parsing process."],"what_it_does":"textparser is a Python library for building fast text parsers by defining token specifications and grammar rules. You subclass textparser.Parser, specify how to tokenize input (using regex patterns), and define the grammar structure using combinators like Sequence. The parser then converts text into a parse tree. The library emphasizes speed\u2014benchmarks show it parsing JSON significantly faster than alternatives like pyparsing, lark, and parsy\u2014and takes design cues from PyParsing for a familiar interface.\n\nIt has no external runtime dependencies and installs as a pure Python wheel, making it lightweight and easy to integrate. The project is actively maintained and supports modern Python versions (3.10+). It's useful when you need to parse domain-specific languages, configuration files, or structured text formats where performance matters and you want direct control over tokenization and grammar rules.","worth_installing":"Yes, if you need to parse structured text and performance matters. The library is actively maintained, has no dependencies, requires only Python 3.10+, and benchmarks show it substantially faster than comparable alternatives. MIT license is permissive. Install it if you're building a parser and speed is a priority; skip it if you need error recovery, detailed diagnostics, or support for older Python versions."},"id":"textparser","links":{"html":"https://skillfed.io/packages/textparser","md":"https://skillfed.io/packages/textparser.md","pypi":"https://pypi.org/project/textparser/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-06-20","license_spdx":"MIT","license_treatment":"permissive","name":"textparser","python_support":"supports_current","summary":"A text parser library for python."},"popularity":{"monthly_downloads":3477089,"position":2607,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.26.2"}
