{"categories":[{"label":"Software Development","url":"https://skillfed.io/packages/category/software-development/16"}],"enrichment":{"capability":"Builds typed command-line interfaces by combining argparse with pydantic models, enabling automatic validation and nested command hierarchies from Python type hints.","skillfed_tags":["cli-builder","type-safe"],"use_cases":["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"],"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.\n\nThe package integrates with pydantic's settings system to pull arguments from multiple sources\u2014environment variables, .env files, JSON, YAML, and TOML\u2014without 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.","worth_installing":"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."},"id":"argdantic","links":{"html":"https://skillfed.io/packages/argdantic","md":"https://skillfed.io/packages/argdantic.md","pypi":"https://pypi.org/project/argdantic/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2025-01-10","license_spdx":null,"license_treatment":"permissive","name":"argdantic","python_support":"unspecified","summary":"Typed command line interfaces with argparse and pydantic"},"popularity":{"monthly_downloads":120288,"position":12036,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.3.3"}
