Skip to content

mkdocstrings/griffe-pydantic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

187b4b8 · Mar 26, 2025

History

32 Commits
Mar 2, 2025
Mar 2, 2025
Mar 2, 2025
Mar 2, 2025
Mar 26, 2025
Mar 26, 2025
Mar 2, 2025
Oct 12, 2024
Oct 12, 2024
Mar 26, 2025
Mar 2, 2025
Mar 2, 2025
Oct 12, 2024
Oct 12, 2024
Nov 3, 2024
Mar 2, 2025
Mar 2, 2025
Mar 26, 2025

Repository files navigation

griffe-pydantic

ci documentation pypi version gitter

Griffe extension for Pydantic.

Installation

pip install griffe-pydantic

Usage

Command-line

griffe dump mypackage -e griffe_pydantic

See command-line usage in Griffe's documentation.

Python

import griffe

griffe.load(
    "mypackage",
    extensions=griffe.load_extensions(
        [{"griffe_pydantic": {"schema": True}}]
    )
)

See programmatic usage in Griffe's documentation.

MkDocs

plugins:
- mkdocstrings:
    handlers:
      python:
        options:
          extensions:
          - griffe_pydantic:
              schema: true

See MkDocs usage in Griffe's documentation.