Skip to content


Declarative Typed Argument Parsing with Pydantic Models.

This is the pydantic-argparse package, which contains the classes, methods and functions required for declarative and typed argument parsing with pydantic models.

The public interface exposed by this package is the declarative and typed ArgumentParser class, as well as the package "dunder" metadata.

Single-Source of Truth Package Versioning and Metadata.

The pydantic-argparse package uses the pyproject.toml file as a single-source of truth for the package metadata. As such, rather than duplicating the metadata in code here, it is retrieved from the installed package metadata at runtime.

The metadata exported are the title, description, version, author and license of the package