$npx skillfedfor your agent

argdantic

Typed command line interfaces with argparse and pydantic

With conditionsPyPI Software DevelopmentReleased Jan 2025120.3K downloads / mopermissive licensePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — argdantic-1.3.3-py2.py3-none-any.whl
v1.3.3 · released 2025-01-10 · 2 runtime deps: pydantic, pydantic-settings

Yes, if you are building a CLI and want pydantic's validation without manual argparse wiring. The low install friction and permissive license make it a safe choice. However, the 581-day dormancy means you should verify compatibility with your target pydantic version and Python release before committing to a production tool; consider pinning the version if you adopt it.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Low friction install with only pydantic and pydantic-settings as runtime dependencies.
  • Package is dormant (581 days since last release) but was actively maintained through early 2025.

License · maintenance · safety

permissive license (permissive) — MIT license (permissive) means you can use, modify, and distribute this package freely in both open-source and commercial projects with minimal restrictions.

last release 2025-01-10 (581 days)

0 known vulnerabilities (OSV.dev, 2026-08-14) · 120,288 downloads/mo, #12,036 on PyPI

Verify before relying

pip install argdantic

from argdantic import ArgParser

parser = ArgParser()

@parser.command()
def greet(name: str, count: int = 1):
    for _ in range(count):
        print(f"Hello {name}")

if __name__ == "__main__":
    parser()
  • Whether the 581-day dormancy affects compatibility with recent pydantic versions or Python releases
  • Availability and completeness of documentation at the project homepage
Same gist for agents: .md · .json

What it is and what it does

argdantic is a thin wrapper around argparse that uses pydantic models to define and validate command-line arguments. Instead of manually wiring up argument parsing and validation, you decorate functions with type hints and pydantic models, and argdantic automatically generates a CLI with help text, type checking, and field validation. It supports nested pydantic models for complex argument structures and nested commands for building hierarchical CLIs.

The package integrates with pydantic's settings system to pull arguments from multiple sources—environment variables, .env files, JSON, YAML, and TOML—without additional boilerplate. It targets developers who want modern, type-safe CLIs without the verbosity of manual argparse setup, and works across Python 3.8 through 3.12.

Use it for

  • Build a typed CLI tool where arguments are validated as pydantic models before your function runs
  • Create nested command hierarchies (subcommands) with shared argument validation logic
  • Load CLI arguments from environment variables or config files alongside command-line flags
  • Enforce argument types and constraints at parse time, catching errors before your code runs

Worth the install?

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

With conditions

Yes, if you are building a CLI and want pydantic's validation without manual argparse wiring.

The low install friction and permissive license make it a safe choice. However, the 581-day dormancy means you should verify compatibility with your target pydantic version and Python release before committing to a production tool; consider pinning the version if you adopt it.

Install

argdantic on PyPI

Before you install

Low friction install with only pydantic and pydantic-settings as runtime dependencies. Package is dormant (581 days since last release) but was actively maintained through early 2025.

License in practice

MIT license (permissive) means you can use, modify, and distribute this package freely in both open-source and commercial projects with minimal restrictions.

Quickstart

pip install argdantic

from argdantic import ArgParser

parser = ArgParser()

@parser.command()
def greet(name: str, count: int = 1):
    for _ in range(count):
        print(f"Hello {name}")

if __name__ == "__main__":
    parser()

Verify before relying

  • Whether the 581-day dormancy affects compatibility with recent pydantic versions or Python releases
  • Availability and completeness of documentation at the project homepage

Package facts

Licensepermissive license permissive
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependencies
2 packages
pydanticpydantic-settings
MaintenanceDormant 581 days since the last release
First released
Downloads120,288 / month, #12,036 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 4 - BetaIntended Audience :: DevelopersIntended Audience :: Information TechnologyIntended Audience :: Science/ResearchLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Software DevelopmentTyping :: Typed

Evidence: argdantic-1.3.3-py2.py3-none-any.whl

Tags

Capabilities
typed CLI with pydanticargparse type validationcommand line interface buildernested CLI commandspydantic CLI parser
Topics
cli-buildertype-safe

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 CLI with pydantic”

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

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 pydantic-argparse · prime-pydantic-config · arguably · argh · simple-parsing · typed-argument-parser · face · decli · targ · logmuse