parse-type
Simplifies to build parse types based on the parse module
Decision gist · record as of 2026-08-14
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)—verify compatibility with your current parse module version and Python release before adopting in new projects.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low install friction with a pure-Python wheel distribution.
- Maintenance status is aging—last release was 368 days ago—but the repository remains active and unarchived with modest community engagement (21 stars).
License · maintenance · safety
MIT (permissive) — MIT license permits commercial and private use with minimal restrictions, making it suitable for most projects.
last release 2025-08-11 (368 days) · last repo commit 2025-08-11 · 21 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 9,574,100 downloads/mo, #1,523 on PyPI
Alternatives
Verify before relying
pip install parse-type
from parse import Parser
from parse_type import TypeBuilder
parse_enum = TypeBuilder.make_enum({"yes": True, "no": False})
parser = Parser("Answer: {answer:YesNo}", dict(YesNo=parse_enum))
result = parser.parse("Answer: yes")
assert result["answer"] == True- Whether the aging maintenance status (368 days since last release) affects compatibility with recent Python or parse module versions.
- Performance characteristics when handling large cardinality lists or deeply nested variant types.
What it is and 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).
The 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—command-line arguments, configuration files, or domain-specific languages—without writing custom parsing logic for each type variant.
Use it for
- 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.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
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)—verify compatibility with your current parse module version and Python release before adopting in new projects.
Install
parse-type on PyPI
Before you install
Low install friction with a pure-Python wheel distribution. Maintenance status is aging—last release was 368 days ago—but the repository remains active and unarchived with modest community engagement (21 stars).
License in practice
MIT license permits commercial and private use with minimal restrictions, making it suitable for most projects.
Quickstart
pip install parse-type
from parse import Parser
from parse_type import TypeBuilder
parse_enum = TypeBuilder.make_enum({"yes": True, "no": False})
parser = Parser("Answer: {answer:YesNo}", dict(YesNo=parse_enum))
result = parser.parse("Answer: yes")
assert result["answer"] == True
Verify before relying
- Whether the aging maintenance status (368 days since last release) affects compatibility with recent Python or parse module versions.
- Performance characteristics when handling large cardinality lists or deeply nested variant types.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release !=3.0.*,!=3.1.*,>=2.7 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 3 packagesparseenum34six |
| Maintenance | Aging 368 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 9,574,100 / month, #1,523 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableEnvironment :: ConsoleEnvironment :: Web EnvironmentIntended Audience :: DevelopersOperating System :: OS IndependentProgramming Language :: Python :: 2.7Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.2Programming Language :: Python :: 3.3Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Software Development :: Code GeneratorsTopic :: Software Development :: Libraries :: Python Modules |
Evidence: parse_type-0.6.6-py2.py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “parse type converters”
- parse-typeExtends the parse module with type converters that handle…
- lsprotocolProvides Python object types and converters for the Language Server…
- arviz-baseProvides converters and base data manipulation functions for the…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also number-parser · django-choices-field · enum-compat · django-enum · enum34 · types-enum34 · marshmallow-enum · cpe · stringparser · backports.strenum