funcparserlib
Recursive descent parsing library based on functional combinators
Decision gist · record as of 2026-08-14
Yes, if you need to parse a custom language or DSL and want a lightweight, dependency-free solution. The library is mature, well-documented, and proven in production use. Its dormant status is not a concern—it is feature-complete and stable. Install it only if you are comfortable with recursive descent parsing's performance characteristics (adequate for small to medium grammars but slower than LR/LALR parsers for large ones).AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Installation is straightforward with no external dependencies.
- The package is dormant (last release 2022-11-03, last commit 2024-05-04) but marked Production/Stable and has been in use since 2009, suggesting it is mature and unlikely to require frequent updates.
License · maintenance · safety
MIT (permissive) — MIT license is permissive, allowing commercial and private use with minimal restrictions—you may use, modify, and distribute funcparserlib freely as long as you include the license notice.
last release 2022-11-03 (1380 days) · last repo commit 2024-05-04 · 360 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 202,314 downloads/mo, #9,649 on PyPI
Alternatives
Verify before relying
from funcparserlib.lexer import make_tokenizer, TokenSpec
from funcparserlib.parser import tok, many, forward_decl
specs = [TokenSpec("int", r"\d+")]
tokenizer = make_tokenizer(specs)
tokens = tokenizer("test")
int_num = tok("int") >> int
result = int_num.parse(tokens)- Whether the package's claimed performance advantage over PyParsing (at least twice faster) has been independently verified.
- Whether the 1.2K lines of code metric is current as of version 1.0.1.
What it is and what it does
Funcparserlib is a pure-Python parsing library built around functional combinators—small, composable parsing functions that you chain together to build larger parsers. It is designed for parsing little languages and external DSLs (domain-specific languages) where you need to tokenize input and then parse it into a structured form. The library includes both a lexer generator (for tokenization with position tracking) and a parser combinator framework, and it emphasizes ease of use over raw performance, making it practical for cases where you need to parse custom syntax without the complexity of traditional parser generators.
The package has no external dependencies, supports Python 2.7 through 3.11, and is fully type-hinted. It is mature and dormant—last released in November 2022 with a final commit in May 2024—indicating stability rather than active development. Real-world use includes projects like Hy (a Lisp dialect embedded in Python), Splash (a JavaScript rendering service), and blockdiag (a diagram generator), all of which rely on funcparserlib to parse their respective DSLs.
Use it for
- Build a custom configuration file parser that reads a domain-specific syntax and converts it into Python objects.
- Implement a simple expression evaluator or calculator that parses and evaluates mathematical expressions with operator precedence.
- Parse a custom query language or filter syntax for a data processing tool.
- Create a code generator or transpiler that reads a custom language and outputs Python or another target language.
- Build a JSON or data-format parser as an alternative to hand-written recursive descent code.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need to parse a custom language or DSL and want a lightweight, dependency-free solution.
The library is mature, well-documented, and proven in production use. Its dormant status is not a concern—it is feature-complete and stable. Install it only if you are comfortable with recursive descent parsing's performance characteristics (adequate for small to medium grammars but slower than LR/LALR parsers for large ones).
Install
funcparserlib on PyPI
Before you install
Installation is straightforward with no external dependencies. The package is dormant (last release 2022-11-03, last commit 2024-05-04) but marked Production/Stable and has been in use since 2009, suggesting it is mature and unlikely to require frequent updates.
License in practice
MIT license is permissive, allowing commercial and private use with minimal restrictions—you may use, modify, and distribute funcparserlib freely as long as you include the license notice.
Quickstart
from funcparserlib.lexer import make_tokenizer, TokenSpec
from funcparserlib.parser import tok, many, forward_decl
specs = [TokenSpec("int", r"\d+")]
tokenizer = make_tokenizer(specs)
tokens = tokenizer("test")
int_num = tok("int") >> int
result = int_num.parse(tokens)
Verify before relying
- Whether the package's claimed performance advantage over PyParsing (at least twice faster) has been independently verified.
- Whether the 1.2K lines of code metric is current as of version 1.0.1.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*, !=3.6.* |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Dormant 1,380 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 202,314 / month, #9,649 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 2Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9 |
Evidence: funcparserlib-1.0.1-py2.py3-none-any.whl
Tags
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 › “parser combinators python”
- funcparserlibFuncparserlib is a recursive descent parsing library that lets you…
- parsyParsy is a parser combinator library that lets you build complex text…
- textparserA fast text parser library that lets you define grammars using token…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also sly · ply · javalang · parsy · Arpeggio · mo-parsing · rply · textparser · Parsley · pyparsing