./textproc/py-parse_type, Simplifies to build parse types based on the parse module

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: pkgsrc-2022Q2, Version: 0.5.6nb1, Package name: py39-parse_type-0.5.6nb1, Maintainer: pkgsrc-users

parse_type extends the parse module (opposite of string.format()) with the
following features:
* build type converters for common use cases (enum/mapping, choice)
* build a type converter with a cardinality constraint (0..1, 0..*, 1..*) from
the type converter with cardinality=1.
* compose a type converter from other type converters
* an extended parser that supports the CardinalityField naming schema and
creates missing type variants (0..1, 0..*, 1..*) from the primary type
converter


Master sites:

Filesize: 264.619 KB

Version history: (Expand)