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

Uploaded Source

Built Distribution

griffe_pydantic-1.1.4-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: griffe_pydantic-1.1.4.tar.gz
  • Upload date:
  • Size: 42.4 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.4.tar.gz
Algorithm Hash digest
SHA256 3ce97cedb2c15b696e0c1c4bb901411f5b83b8e4d57b1fc0f2becde678ab4870
MD5 b0f95e3d79928ffdef9165fd13a9e99b
BLAKE2b-256 ad88f7b8558568eb11369383b4fdf91cf9f2ecf375e57193dd69673d553dc4d8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for griffe_pydantic-1.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 a4b9933579e14a8296cae90e71dace2742d91cb6792e5cd583047a6079f94e78
MD5 c55423aad7b2b2b4906ff20b63697510
BLAKE2b-256 0ba0496e4f4f3af322171913b77f1789f479535abedf9f08359f1918219e03c8

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