← All repos

parsy

Easy and elegant parser combinators for Python. With awesome docs.

Browse cluster: Haskell tooling and libraries
389commits
17contributors
2languages

Tech stack & purpose

Parsy is a Python library for parsing text through parser combinators, allowing developers to build complex parsers by combining smaller, simpler ones. It implements monadic parser combinators for LL(infinity) grammars in the style of Parsec, Parsnip, and Parsimmon, with a focus on clear, declarative code. The library has zero dependencies outside the Python standard library, consists of a single module with fewer than 800 lines of code, and has remained highly stable and mature over more than a decade. Parsy was originally created by Jeanine Adkisson with contributions from the community.

Languages

Python
99.2%
Shell
0.8%

Contributors