BSD Ports

textproc/py-parse-type 0.6.4 DragonFly

Simplify to build parse types based on the parse module

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
BSD2CLAUSE
Categories
python, textproc
Package size
45.5 KiB, 261.8 KiB installed

Description

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

In the other systems

SystemPortVersion
DragonFlytextproc/py-parse-type0.6.4
FreeBSDtextproc/py-parse-type0.6.6

Install

Binary package:

pkg install py311-parse-type

From DPorts:

cd /usr/dports/textproc/py-parse-type && make install clean

Dependencies

Run dependencies 3
Required by 1