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.1.0.tar.gz
(37.0 kB
view details)
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c5a701cc485dab087857c1ac960b44671acee5008aaae0752f610b2aa82b068 |
|
MD5 | 7146cfe67a5d5872e4276aad644793c2 |
|
BLAKE2b-256 | 8e6b351be1b24e7afb1d5185095870f7a88403db6edd7af644c253b6671fc81b |
File details
Details for the file griffe_pydantic-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: griffe_pydantic-1.1.0-py3-none-any.whl
- Upload date:
- Size: 10.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac9cc2d9b016cf302d8d9f577c9b3ca2793d88060f500d0b2a65f33a4a785cf1 |
|
MD5 | 1feea39b0b91f80425ee373857a7a032 |
|
BLAKE2b-256 | 9d4da667697bbe0da8810470e71d1034932f3ec590e47719c9a0b7a3dc0e54cf |