Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

pydantic-explain

Human-readable error messages for Pydantic validation errors.

Installation

With uv:

uv add pydantic-explain

Usage

from pydantic import BaseModel, ValidationError
from pydantic_explain import format_errors


class Address(BaseModel):
    street: str
    zipcode: str


class User(BaseModel):
    name: str
    addresses: list[Address]


try:
    User.model_validate({
        "name": "Alice",
        "addresses": [
            {"street": "123 Main St"},
            {"street": "456 Oak Ave", "zipcode": ["invalid"]},
        ],
    })
except ValidationError as e:
    print(format_errors(e))
Validation failed for User with 2 errors

  addresses[0].zipcode
    Field required
    Got: (missing)

  addresses[1].zipcode
    Input should be a valid string
    Got: ['invalid']

Documentation

Full documentation is available at pydantic-explain docs.

Metadata

Release files for pydantic-explain 0.0.1a0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pydantic-explain 0.0.1a0
File Size Uploaded Provenance
pydantic_explain-0.0.1a0.tar.gz 61.3 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for pydantic-explain 0.0.1a0
File Interpreter ABI Platform
pydantic_explain-0.0.1a0-py3-none-any.whl Python 3 none any Details

Total release size: 66.5 kB

Release files / pydantic_explain-0.0.1a0.tar.gz

Download URL pydantic_explain-0.0.1a0.tar.gz
Size 61.3 kB
Tags Source
SHA-256 checksum
How to use checksums
0f61def42c257391b8fd84a0621de76ab52779a3924e9c713231ceeeec85052b
BLAKE2b-256 checksum
How to use checksums
d2c4e27f456c376e88bc931891528e9bb06265a6e5318866e5fafb983ab47e11
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / pydantic_explain-0.0.1a0-py3-none-any.whl

Download URL pydantic_explain-0.0.1a0-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d7bf33f8fb071a95fa9a5cea8f729d910efa4f9ecf95de3f2f2c42c06e3bf2b8
BLAKE2b-256 checksum
How to use checksums
6377a3a35212a2b1ab7c945560197f2d41ad3b5cd1d749d7dac566719775a934
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for pydantic-explain 0.0.1a0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page