Skip to main content

Griffe extension for Pydantic.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

griffe_pydantic-1.1.2.tar.gz (38.9 kB view details)

Uploaded Source

Built Distribution

griffe_pydantic-1.1.2-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file griffe_pydantic-1.1.2.tar.gz.

File metadata

  • Download URL: griffe_pydantic-1.1.2.tar.gz
  • Upload date:
  • Size: 38.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for griffe_pydantic-1.1.2.tar.gz
Algorithm Hash digest
SHA256 381eacd8854a85811522b4f6dc9a1ef0fb5931825081379d70ff3a425b0d4ea1
MD5 161968b718b6014b98b1147d7bc69755
BLAKE2b-256 ca9e5242baf6e06adf7e9db6a0ef74728c34885325a461502695acba892a9a2f

See more details on using hashes here.

File details

Details for the file griffe_pydantic-1.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for griffe_pydantic-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8ad53218ca6e9c24ccec83588eb435f562b30355f641fe336e81b1e00ea05f3c
MD5 e4743d1d155f29cf6a4e049321fc54b5
BLAKE2b-256 69bb2f4889c062f91ed809dbd14a2628365fa7f75b7fc3f8ce17d98b726563b0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page