Skip to main content

Griffe extension adding support for data-class like things (pydantic, attrs, etc...)

Project description

griffe-fieldz

License PyPI Python Version CI codecov

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

griffe_fieldz-0.2.1.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

griffe_fieldz-0.2.1-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

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

Hashes for griffe_fieldz-0.2.1.tar.gz
Algorithm Hash digest
SHA256 7371693cdd045ac95aaebd16a81586d8dfa72c30e2d4519e0dde0d80f8ef0dc7
MD5 cfa39e23e8f5588db5cf8406caee1e74
BLAKE2b-256 95955c47b6c54d106c76aad9b51177401ad4215a0de910c6853b689a2c6d07da

See more details on using hashes here.

Provenance

The following attestation bundles were made for griffe_fieldz-0.2.1.tar.gz:

Publisher: ci.yml on pyapp-kit/griffe-fieldz

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file griffe_fieldz-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for griffe_fieldz-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 04ae78b487c832a38b0495f971784d513da413b867c51e429f39d74f76d4f941
MD5 9796cdb59bff0303e125eaab62461517
BLAKE2b-256 6ffcc059d128d77a369f54a3753162a38cd7668e5b4d14464672001a50cf2e9d

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page