argdantic
Typed command line interfaces with argparse and pydantic
Decision gist · record as of 2026-08-14
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
Alternatives
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
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.
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
| License | permissive license permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagespydanticpydantic-settings |
| Maintenance | Dormant 581 days since the last release |
| First released | |
| Downloads | 120,288 / month, #12,036 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None 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
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
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 pydantic-argparse · prime-pydantic-config · arguably · argh · simple-parsing · typed-argument-parser · face · decli · targ · logmuse