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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for griffe_pydantic-1.1.1.tar.gz
Algorithm Hash digest
SHA256 ca3595df7a586343391ea976c456b8142750c68a5901e593ab6529bd8120275a
MD5 9ea04539c15fa24942fe017d5087f7f5
BLAKE2b-256 c86d6594f5791ff224ebc037a5da6aaef5c426912077894d8694400fcd7639b7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for griffe_pydantic-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b4ac8c5208333dbda6ef4aa2a9163ca7d8fa2f89a0ca4391a50849e05bc7c0fa
MD5 e39ccd2dd4106864a181b3525ef80118
BLAKE2b-256 36fbcf0aeb24e39d2b9780a33c4c7f349cffb3aca5faeb25860b89c020ead091

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