| 1 | Source: flexparser |
| 2 | Section: python |
| 3 | Priority: optional |
| 4 | Maintainer: Debian Python Team <[email protected]> |
| 5 | Uploaders: |
| 6 | Antonio Valentino <[email protected]>, |
| 7 | Build-Depends: |
| 8 | debhelper-compat (= 13), |
| 9 | dh-sequence-python3, |
| 10 | pybuild-plugin-pyproject, |
| 11 | python3-all, |
| 12 | python3-pytest (>=9) <!nocheck>, |
| 13 | python3-pytest-mpl <!nocheck>, |
| 14 | python3-setuptools, |
| 15 | python3-setuptools-scm, |
| 16 | python3-typing-extensions, |
| 17 | Standards-Version: 4.7.2 |
| 18 | Testsuite: autopkgtest-pkg-pybuild |
| 19 | Rules-Requires-Root: no |
| 20 | Homepage: https://github.com/hgrecco/flexparser |
| 21 | Vcs-Browser: https://salsa.debian.org/python-team/packages/flexparser |
| 22 | Vcs-Git: https://salsa.debian.org/python-team/packages/flexparser.git |
| 23 | Description: Parsing using Python typing |
| 24 | The idea behind flexparser is quite simple. To write a class for every |
| 25 | type of content (called here `ParsedStatement`) one needs to parse. |
| 26 | Each class have a `from_string` constructor. |
| 27 | The `typing` module is used extensively to make the output structure |
| 28 | easy to use and less error prone. |
| 29 | . |
| 30 | The fuse of frozen dataclass is not necessary but it convenient. |
| 31 | Being a dataclass you get the init, str, repr, etc for free. |
| 32 | Being frozen, sort of immutable, makes them easier to reason around. |
| 33 | . |
| 34 | The result is a collection of `ParsedStatement` or `ParsingError`. |
| 35 | |
| 36 | Package: python3-flexparser |
| 37 | Architecture: all |
| 38 | Depends: |
| 39 | ${misc:Depends}, |
| 40 | ${python3:Depends}, |
| 41 | Description: ${source:Synopsis} |
| 42 | ${source:Extended-Description} |