$npx skillfedfor your agent

pydantic-argparse

Typed Argument Parsing with Pydantic

Worth itPyPI Python ModulesReleased Feb 20251.2M downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — pydantic_argparse-0.10.0-py3-none-any.whl
v0.10.0 · released 2025-02-09 · Python >=3.8 · 1 runtime deps: pydantic

Yes. The package has low install friction, active maintenance, no known vulnerabilities, and a permissive MIT license. It solves a genuine problem—eliminating duplication between Pydantic models and argparse setup—and is well-suited for projects already using Pydantic. Verify Pydantic v2 compatibility if your project uses v2.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.8+ and is compatible with the Pydantic v1 API.
  • Low install friction with a single runtime dependency on pydantic.
  • The package is actively maintained with recent commits and has been in development since 2021, supporting current Python versions from 3.8 onwards.

License · maintenance · safety

MIT (permissive) — MIT license permits unrestricted use, modification, and distribution in both open-source and proprietary projects with minimal obligations.

last release 2025-02-09 (551 days) · last repo commit 2026-06-22 · 138 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,153,548 downloads/mo, #4,292 on PyPI

Verify before relying

pip install pydantic-argparse

import pydantic.v1 as pydantic
import pydantic_argparse

class Arguments(pydantic.BaseModel):
    name: str = pydantic.Field(description="Your name")

parser = pydantic_argparse.ArgumentParser(model=Arguments)
args = parser.parse_typed_args()
print(args)
  • Compatibility with Pydantic v2 (description mentions v1 API compatibility but v2 support status unclear)
  • Performance characteristics with large or deeply nested model hierarchies
Same gist for agents: .md · .json

What it is and what it does

Pydantic Argparse bridges Pydantic models and command-line argument parsing by automatically generating argument parsers from your model definitions. Instead of manually writing argparse code with separate type hints and validation, you define a Pydantic BaseModel with fields and their descriptions, and the package generates a fully-featured CLI parser that enforces types, provides help text, and handles aliases—all derived from your model schema.

The package is useful when you want CLI tools to have the same validation and type safety as your application code. It reduces boilerplate by eliminating the need to duplicate type information between your Pydantic models and argparse setup, and it automatically generates help output that matches your field descriptions.

Use it for

  • Build CLI tools where argument types and validation rules are already defined in Pydantic models
  • Generate help text and argument documentation automatically from model field descriptions
  • Enforce type validation on command-line inputs without manual argparse configuration
  • Create tools with required and optional arguments, flags, and aliases all specified in a single model
  • Reduce boilerplate when multiple CLI scripts share the same argument structure

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

The package has low install friction, active maintenance, no known vulnerabilities, and a permissive MIT license. It solves a genuine problem—eliminating duplication between Pydantic models and argparse setup—and is well-suited for projects already using Pydantic. Verify Pydantic v2 compatibility if your project uses v2.

Install

pydantic-argparse on PyPI

Before you install

Low install friction with a single runtime dependency on pydantic. The package is actively maintained with recent commits and has been in development since 2021, supporting current Python versions from 3.8 onwards.

Requires Python 3.8+ and is compatible with the Pydantic v1 API.

License in practice

MIT license permits unrestricted use, modification, and distribution in both open-source and proprietary projects with minimal obligations.

Quickstart

pip install pydantic-argparse

import pydantic.v1 as pydantic
import pydantic_argparse

class Arguments(pydantic.BaseModel):
    name: str = pydantic.Field(description="Your name")

parser = pydantic_argparse.ArgumentParser(model=Arguments)
args = parser.parse_typed_args()
print(args)

Verify before relying

  • Compatibility with Pydantic v2 (description mentions v1 API compatibility but v2 support status unclear)
  • Performance characteristics with large or deeply nested model hierarchies

Package facts

LicenseMIT permissive
Python supportSupports the current Python release >=3.8
Install frictionLow. Pure-Python wheel
Runtime dependencies
1 package
pydantic
MaintenanceActively maintained 551 days since the last release
Last repo commit
First released
Downloads1,153,548 / month, #4,292 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 4 - BetaFramework :: PydanticIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Software Development :: Libraries :: Python Modules

Evidence: pydantic_argparse-0.10.0-py3-none-any.whl

Tags

Capabilities
pydantic argparse integrationtyped command line argumentscli parser from pydantic modelargument parsing with validationpydantic-based cli toolautomatic help text generationtyped argument validation
Topics
cli-builderpydantic-integration
PyPI keywords
argparsepydanticpythontypedvalidation

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 › “pydantic argparse integration”

  • pydantic-argparseGenerates command-line argument parsers from Pydantic models,…
  • argdanticBuilds typed command-line interfaces by combining argparse with…
  • tyrotyro generates command-line interfaces and configuration objects…

Give your agent the search over MCP, or paste the wish link into any chat.

More Python Modules packages

idna Worth it
PyPI · Python Modules · released Jun 2026

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.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

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.

MITpure Python · 3.10+
1.6Bdownloads / mo
PyYAML Worth it
PyPI · Python Modules · released Sep 2025

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.

MITcompiled wheel · 3.8+
1.2Bdownloads / mo
pydantic Worth it
PyPI · Python Modules · released May 2026

Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.

MITpure Python · 3.9+
1.1Bdownloads / mo
annotated-types Worth it
PyPI · Python Modules · released Jul 2026

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…

MITpure Python · 3.10+
871.3Mdownloads / mo
typing-inspection Worth it
PyPI · Python Modules · released Aug 2026

Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.

MITpure Python · 3.10+
783.0Mdownloads / mo

See also argdantic · argparse · argparse-addons · plac · autocommand · prime-pydantic-config · rich-argparse · pylint-pydantic · decli · mando