Griffe extension that adds support for data-class like things (pydantic, attrs, etc.), extracting field metadata from class definitions into the model. Current version 0.5.0, released irregularly.
pip install griffe-fieldzNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Load a module with the extension and print fields for classes that have them.
Use griffe>=0.45 with griffe-fieldz>=0.4.0.
Always pass extensions=[GriffeFieldzExtension()] when calling load() or in the CLI.
Check the 'extra.fields' dict for each class; missing fields may require manual annotation or a more specific field descriptor.
Access fields as cls.extra['fields'][name] instead of iterating over a list.
No resource links recorded.