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 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

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.1.2.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

griffe_fieldz-0.1.2-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file griffe_fieldz-0.1.2.tar.gz.

File metadata

  • Download URL: griffe_fieldz-0.1.2.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for griffe_fieldz-0.1.2.tar.gz
Algorithm Hash digest
SHA256 7a109c0f3fc38cce2107f1ae6270045f937406587bd6c20a1d1e7565c9d8c57d
MD5 ddc0935bc72d6ec8c34d51e6077f729b
BLAKE2b-256 3c27113e076108a4ea651d0a4814775100971444eca4394bebee78f650e68f50

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for griffe_fieldz-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2528af30f5a1ff91c3a34e73225e3d173b80c28b3ba019bcadfde119b6344d98
MD5 c2d54c9ec0c82bca57d1ce7275e6ea09
BLAKE2b-256 a211ca440a51583162b3b3edfe52c166ce03be35450a21a6af9714728ccc70d7

See more details on using hashes here.

Supported by

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