$npx skillfedfor your agent

typed-argument-parser

Typed Argument Parser

Worth itPyPI Software DevelopmentReleased Mar 2026313.9K downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — typed_argument_parser-1.12.0-py3-none-any.whl
v1.12.0 · released 2026-03-28 · Python >=3.10 · 1 runtime deps: docstring-parser

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

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.
Same gist for agents: .md · .json

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.

Worth 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

LicenseMIT permissive
Python supportSupports the current Python release >=3.10
Install frictionLow. Pure-Python wheel
Runtime dependencies
1 package
docstring-parser
MaintenanceActively maintained 139 days since the last release
Last repo commit
First released
Downloads313,913 / month, #7,709 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone 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

Capabilities
typed command line argument parserargparse with type hintspython cli argument parsingstatic type checking climodern argument parser pythondataclass-style argument parserIDE autocomplete command line
Topics
cli-frameworktype-hintsargparse-alternative
PyPI keywords
typingargument parserpython

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

typing-extensions Worth it
PyPI · Software Development · released Jul 2026

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.

PSF-2.0pure Python · 3.9+
1.9Bdownloads / mo
numpy Worth it
PyPI · Software Development · released Aug 2026

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.

BSD-3-Clause AND 0BSD AND MIT AND Zlib AND CC0-1.0compiled wheel · 3.12+
1.1Bdownloads / mo
fastapi Worth it
PyPI · Software Development · released Jul 2026

FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.

MITpure Python · 3.10+
568.6Mdownloads / mo
annotated-doc With conditions
PyPI · Software Development · released Jul 2026

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.

MITpure Python · 3.9+
456.2Mdownloads / mo
typer Worth it
PyPI · Software Development · released Aug 2026

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.

MITpure Python · 3.10+
369.3Mdownloads / mo
distlib With conditions
PyPI · Software Development · released Jun 2026

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.

permissive licensepure Python
323.3Mdownloads / mo

See also argparse-addons · argparse-dataclass · simple-parsing · targ · decli · argdantic · autocommand · argbind · argcomplete · tap.py