Griffe extension adding support for data-class like things (pydantic, attrs, etc...)
Project description
griffe-fieldz
Griffe extension adding support for dataclass-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
You may use any of the following options, provided as a dictionary under the
griffe_fieldz
key.
Option | Description | Default |
---|---|---|
include_inherited |
Include inherited fields in class parameters. | False |
include_private |
Include private fields in the documentation. | False |
For example:
options:
extensions:
- griffe_fieldz: {include_inherited: true}
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
Built Distribution
File details
Details for the file griffe_fieldz-0.2.1.tar.gz
.
File metadata
- Download URL: griffe_fieldz-0.2.1.tar.gz
- Upload date:
- Size: 8.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7371693cdd045ac95aaebd16a81586d8dfa72c30e2d4519e0dde0d80f8ef0dc7 |
|
MD5 | cfa39e23e8f5588db5cf8406caee1e74 |
|
BLAKE2b-256 | 95955c47b6c54d106c76aad9b51177401ad4215a0de910c6853b689a2c6d07da |
Provenance
The following attestation bundles were made for griffe_fieldz-0.2.1.tar.gz
:
Publisher:
ci.yml
on pyapp-kit/griffe-fieldz
-
Statement:
- Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
griffe_fieldz-0.2.1.tar.gz
- Subject digest:
7371693cdd045ac95aaebd16a81586d8dfa72c30e2d4519e0dde0d80f8ef0dc7
- Sigstore transparency entry: 161855181
- Sigstore integration time:
- Permalink:
pyapp-kit/griffe-fieldz@15a5abf41710aec155a56cd6f1e9fb6baef12ea4
- Branch / Tag:
refs/tags/v0.2.1
- Owner: https://github.com/pyapp-kit
- Access:
public
- Token Issuer:
https://token.actions.githubusercontent.com
- Runner Environment:
github-hosted
- Publication workflow:
ci.yml@15a5abf41710aec155a56cd6f1e9fb6baef12ea4
- Trigger Event:
push
- Statement type:
File details
Details for the file griffe_fieldz-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: griffe_fieldz-0.2.1-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04ae78b487c832a38b0495f971784d513da413b867c51e429f39d74f76d4f941 |
|
MD5 | 9796cdb59bff0303e125eaab62461517 |
|
BLAKE2b-256 | 6ffcc059d128d77a369f54a3753162a38cd7668e5b4d14464672001a50cf2e9d |
Provenance
The following attestation bundles were made for griffe_fieldz-0.2.1-py3-none-any.whl
:
Publisher:
ci.yml
on pyapp-kit/griffe-fieldz
-
Statement:
- Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
griffe_fieldz-0.2.1-py3-none-any.whl
- Subject digest:
04ae78b487c832a38b0495f971784d513da413b867c51e429f39d74f76d4f941
- Sigstore transparency entry: 161855182
- Sigstore integration time:
- Permalink:
pyapp-kit/griffe-fieldz@15a5abf41710aec155a56cd6f1e9fb6baef12ea4
- Branch / Tag:
refs/tags/v0.2.1
- Owner: https://github.com/pyapp-kit
- Access:
public
- Token Issuer:
https://token.actions.githubusercontent.com
- Runner Environment:
github-hosted
- Publication workflow:
ci.yml@15a5abf41710aec155a56cd6f1e9fb6baef12ea4
- Trigger Event:
push
- Statement type: