Easy-to-use parser combinators, for parsing in pure Python
Project description
Parsy is an easy and elegant way to parse text in Python by combining small parsers into complex, larger parsers. If it means anything to you, it’s a monadic parser combinator library for LL(infinity) grammars in the spirit of Parsec, Parsnip, and Parsimmon. But don’t worry, it has really good documentation and it doesn’t say things like that!
For a good example of the kind of clear, declarative code you can create using parsy, see the SQL SELECT statement example or JSON parser.
The project:
has zero dependencies outside stdlib.
is highly mature and stable, with few-to-none backwards incompatibilities over the past 10 years.
is essentially complete, with no rewrites planned. Widely useful improvements that don’t break compatibility will still be considered, however.
is implemented in a single module with less than 800LOC, which you could vendor easily if required.
Links:
To contribute, please create a fork and submit a pull request on GitHub, after checking the contributing section of the docs. Thanks!
If you like parsy and think it should be better known, you could:
Star this project on GitHub.
Vote for it being included on awesome-python.
Parsy was originally written by Jeanine Adkisson, with contributions by other people as can be found in the git commit history.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file parsy-2.2.tar.gz.
File metadata
- Download URL: parsy-2.2.tar.gz
- Upload date:
- Size: 47.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e943147644a8cf0d82d1bcb5c5867dd517495254cea3e3eb058b1e421cb7561f
|
|
| MD5 |
f576030b949854e9ff8b23fde217874f
|
|
| BLAKE2b-256 |
cc581e3f382eef9e50a2a115486b0c178d22bb97d2fbb85421ccbe5d3a783530
|
File details
Details for the file parsy-2.2-py3-none-any.whl.
File metadata
- Download URL: parsy-2.2-py3-none-any.whl
- Upload date:
- Size: 9.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5e981613d9d2d8b68012d1dd0afe928967bea2e4eefdb76c2f545af0dd02a9e7
|
|
| MD5 |
60854d18fcea4d7d88c2a024afa9fef0
|
|
| BLAKE2b-256 |
77fc8cb9073bb1bee54eb49a1ae501a36402d01763812962ac811cdc1c81a9d7
|