Griffe extension adding support for data-class like things (pydantic, attrs, etc...)
Project description
griffe-fieldz
Griffe extension adding support for data-class like things (pydantic, attrs, etc...). This extension will inject the fields of the data-class into the documentation, preventing you from duplicating field metadata in your docstrings.
It supports anything that fieldz supports, which is currently:
Installation
With pip
:
pip install griffe-fieldz
To use the extension in a MkDocs project, use this configuration:
# mkdocs.yml
plugins:
- mkdocstrings:
handlers:
python:
options:
extensions:
- griffe_fieldz
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_fieldz-0.1.0.tar.gz
(8.1 kB
view details)
Built Distribution
File details
Details for the file griffe_fieldz-0.1.0.tar.gz
.
File metadata
- Download URL: griffe_fieldz-0.1.0.tar.gz
- Upload date:
- Size: 8.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d10ccd579605dfb4fcddcf28ab8cd5908c3d14587e293c8f9fd6f6c05b135f6f |
|
MD5 | 0aca370d3ae0c354dcc26543ffc3f1e3 |
|
BLAKE2b-256 | a96a50479e0be2baa7d9c8dcfc0c9e82ead7de10dc8f76c0c892bebde5ea9beb |
Provenance
File details
Details for the file griffe_fieldz-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: griffe_fieldz-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 762a1f69d9094fc2eafee0e003b79b68edb2a00b093204129794a2cefd71b0a7 |
|
MD5 | c25167d91fe870affbe3b9f74a8121e2 |
|
BLAKE2b-256 | 481205e8e2caed04d9ca2fe76d3b9d1ac94565e704646e3c6949bb4ea0c82b0e |