Parsing made fun … using typing
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 extensively the typing module to make the output structure easy to use and less error prone.
Release | Stable | Testing |
---|---|---|
Fedora Rawhide | 0.4-2.fc42 | - |
Fedora 42 | 0.4-2.fc42 | - |
Fedora 41 | 0.4-1.fc41 | - |
Fedora 40 | 0.3.1-1.fc40 | - |
Fedora EPEL 10.0 | 0.4-1.el10_0 | - |
You can contact the maintainers of this package via email at
python-flexparser dash maintainers at fedoraproject dot org
.