Griffe extension for Pydantic.
Project description
griffe-pydantic
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
Project details
Release history Release notifications | RSS feed
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.0.0.tar.gz
(35.7 kB
view hashes)
Built Distribution
Close
Hashes for griffe_pydantic-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9697a385aba2eeb12f467fe174b9b6243e4a38aa17031864e892563aa27dd328 |
|
MD5 | d99bf55057d8659af9dc0876144a510c |
|
BLAKE2b-256 | 5a96452220998ed3bbdc7a2d7bed72735b341bf3bd5321c245b9d07ff0ed3f29 |