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.0.tar.gz (37.0 kB view details)

Uploaded Source

Built Distribution

griffe_pydantic-1.1.0-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: griffe_pydantic-1.1.0.tar.gz
  • Upload date:
  • Size: 37.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for griffe_pydantic-1.1.0.tar.gz
Algorithm Hash digest
SHA256 9c5a701cc485dab087857c1ac960b44671acee5008aaae0752f610b2aa82b068
MD5 7146cfe67a5d5872e4276aad644793c2
BLAKE2b-256 8e6b351be1b24e7afb1d5185095870f7a88403db6edd7af644c253b6671fc81b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for griffe_pydantic-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ac9cc2d9b016cf302d8d9f577c9b3ca2793d88060f500d0b2a65f33a4a785cf1
MD5 1feea39b0b91f80425ee373857a7a032
BLAKE2b-256 9d4da667697bbe0da8810470e71d1034932f3ec590e47719c9a0b7a3dc0e54cf

See more details on using hashes here.

Supported by

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