typed-argument-parser
Typed Argument Parser
Decision gist · record as of 2026-08-14
Yes. typed-argument-parser is worth installing if you write CLI tools in Python and want type safety, IDE support, and cleaner code than argparse. It has low install friction, active maintenance, no known vulnerabilities, a permissive MIT license, and requires only one runtime dependency. The main constraint is Python 3.10+, which is reasonable for new projects.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later.
- Low friction install with a single runtime dependency (docstring-parser).
- The package is actively maintained with a recent release (139 days ago) and requires Python 3.10 or later.
License · maintenance · safety
MIT (permissive) — MIT license is permissive, allowing use in commercial and private projects with minimal restrictions—you only need to include the license text in distributions.
last release 2026-03-28 (139 days) · last repo commit 2026-06-21 · 629 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 313,913 downloads/mo, #7,709 on PyPI
Alternatives
Verify before relying
pip install typed-argument-parser
from typed_argument_parser import Tap
class MyArgs(Tap):
name: str
count: int = 1
args = MyArgs().parse_args()
print(f'{args.name} x {args.count}')- Whether tapify works with all standard Python callables or has edge cases.
- Performance characteristics compared to argparse for large argument sets.
- Whether subparser and advanced argparse features are fully supported or have limitations.
What it is and what it does
typed-argument-parser replaces Python's built-in argparse with a class-based, type-hinted approach where you define command-line arguments as typed class attributes instead of calling add_argument repeatedly. It automatically generates help text from inline comments, validates types at parse time, and integrates with IDEs for code completion and type checking. The package also includes tapify, a decorator that automatically parses command-line arguments to call functions or initialize classes.
Under the hood, typed-argument-parser is a wrapper around argparse that translates your class definition into the equivalent argparse configuration. It supports standard argument types (str, int, float, bool, Optional, List, Set, Tuple, Literal, Union), positional arguments, subparsers, and argument post-processing via a configure method. The single runtime dependency is docstring-parser, which extracts help text from your comments.
Use it for
- Build a CLI tool where type hints serve as both documentation and runtime validation without repeating type declarations.
- Migrate from argparse to gain IDE autocomplete and static type checking on parsed arguments.
- Use tapify to quickly expose a Python function as a command-line tool with automatic argument parsing.
- Define reusable argument templates by subclassing and inheriting argument definitions across multiple CLI tools.
- Save and load argument configurations to/from files or dictionaries for reproducible runs and experiment tracking.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
typed-argument-parser is worth installing if you write CLI tools in Python and want type safety, IDE support, and cleaner code than argparse. It has low install friction, active maintenance, no known vulnerabilities, a permissive MIT license, and requires only one runtime dependency. The main constraint is Python 3.10+, which is reasonable for new projects.
Install
typed-argument-parser on PyPI
Before you install
Low friction install with a single runtime dependency (docstring-parser). The package is actively maintained with a recent release (139 days ago) and requires Python 3.10 or later.
Requires Python 3.10 or later.
License in practice
MIT license is permissive, allowing use in commercial and private projects with minimal restrictions—you only need to include the license text in distributions.
Quickstart
pip install typed-argument-parser
from typed_argument_parser import Tap
class MyArgs(Tap):
name: str
count: int = 1
args = MyArgs().parse_args()
print(f'{args.name} x {args.count}')
Verify before relying
- Whether tapify works with all standard Python callables or has edge cases.
- Performance characteristics compared to argparse for large argument sets.
- Whether subparser and advanced argparse features are fully supported or have limitations.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagedocstring-parser |
| Maintenance | Actively maintained 139 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 313,913 / month, #7,709 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Operating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Typing :: Typed |
Evidence: typed_argument_parser-1.12.0-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 › “typed command line argument parser”
- typed-argument-parserA typed, modern replacement for Python's argparse that uses class…
- argdanticBuilds typed command-line interfaces by combining argparse with…
- argparse-dataclassBuilds command-line interfaces declaratively by combining Python…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also argparse-addons · argparse-dataclass · simple-parsing · targ · decli · argdantic · autocommand · argbind · argcomplete · tap.py