BSD Ports

devel/py-flexparser 0.4 DragonFly

Parsing made fun ... using typing

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
BSD3CLAUSE
Categories
devel, python
Package size
58.9 KiB, 352.4 KiB installed

Description

Why write another parser? I have asked myself the same question while working on this project. It is clear that there are excellent parsers out there, but I wanted to experiment with another way of writing them.

The idea is quite simple. You write a class for every type of content (called here ParsedStatement) you need to parse. Each class should have a from_string constructor. We used the typing module extensively to make the output structure easy to use and less error-prone.

In the other systems

The newest version among them is 0.4, as upstream numbers it.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
DragonFlydevel/py-flexparser0.4 newestnone known-[email protected]-
FreeBSDdevel/py-flexparser0.4 newestnone known-[email protected]-
HardenedBSDdevel/py-flexparser0.4 newestno data-[email protected]-
GhostBSDdevel/py-flexparser0.4 newestno data-[email protected]-

Version history 1

  1. 0.4

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-flexparser

From DPorts:

cd /usr/dports/devel/py-flexparser && 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.

Dependencies

Run dependencies 2