devel/py-parsy 2.2 DragonFly
Easy-to-use parser combinators, for parsing in pure Python
- System
- DragonFly
- Repository
- DPorts
- Maintainer
- [email protected] (as in FreeBSD)
- License
- MIT
- Categories
- devel, python
- Package size
- 19.2 KiB, 97.9 KiB installed
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.
In the other systems
The newest version among them is 2.2, as upstream numbers it.
| System | Port | Version | Vulnerabilities | Status | Maintainer | Last update |
|---|---|---|---|---|---|---|
| DragonFly | devel/py-parsy | 2.2 newest | none known | - | [email protected] | - |
| FreeBSD | devel/py-parsy | 2.2 newest | none known | - | [email protected] | - |
| HardenedBSD | devel/py-parsy | 2.2 newest | no data | - | [email protected] | - |
| GhostBSD | devel/py-parsy | 2.2 newest | no data | - | [email protected] | - |
Version history 1
- 2.2
Upstream's version as each commit to the port's Makefile set it, or as this site first saw it in the system's packages; the tree's own revisions are not versions here.
Install
Binary package:
pkg install py312-parsy
From DPorts:
cd /usr/dports/devel/py-parsy && make install clean
Dependency graph
Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.