{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/3"},{"label":"Code Generators","url":"https://skillfed.io/packages/category/software-development-code-generators"}],"enrichment":{"capability":"Extends the parse module with type converters that handle enumerations, choices, cardinality constraints (optional, many, many-or-more), and variant types for structured text parsing.","skillfed_tags":["text-parsing","type-conversion"],"use_cases":["Parse command-line arguments with optional flags and repeated values using a single schema.","Convert configuration file entries into typed enums or choice values with cardinality constraints.","Build domain-specific language parsers that accept multiple type alternatives (variants) in a single field.","Parse log or data files where some fields are optional and others repeat, using declarative type definitions.","Create structured text-to-object converters for testing frameworks or behavior-driven development tools."],"what_it_does":"parse_type is a library that builds on top of the parse module (which reverses string.format()) to add structured type conversion for common parsing patterns. It lets you define type converters for enumerations, optional fields, repeated elements, and choice lists, then use them in parse format strings with a cardinality-field naming convention (e.g., {item:Type?} for optional, {items:Type*} for zero-or-more, {items:Type+} for one-or-more).\n\nThe package depends on parse, enum34 (for Python 2.7 and early Python 3 compatibility), and six for cross-version compatibility. It's useful when you need to parse structured text into typed values\u2014command-line arguments, configuration files, or domain-specific languages\u2014without writing custom parsing logic for each type variant.","worth_installing":"Yes, if you are already using the parse module and need to handle enumerations, optional fields, or repeated elements without writing custom type converters. The low install friction and MIT license make it a low-risk addition. However, note the aging maintenance status (368 days since last release)\u2014verify compatibility with your current parse module version and Python release before adopting in new projects."},"id":"parse-type","links":{"html":"https://skillfed.io/packages/parse-type","md":"https://skillfed.io/packages/parse-type.md","pypi":"https://pypi.org/project/parse-type/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2025-08-11","license_spdx":"MIT","license_treatment":"permissive","name":"parse-type","python_support":"supports_current","summary":"Simplifies to build parse types based on the parse module"},"popularity":{"monthly_downloads":9574100,"position":1523,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.6.6"}
