A Python library for eliminating class boilerplate by providing an attrs/dataclass-like container class with built-in validation and transformation. Current version is 5.0.0, released on 2025-12-05. Development appears slow; pre-5.0.0 releases were irregular.
pip install fieldsVerified import paths — ran on the pinned version, not inferred.
Define a container class with automatic __init__, __repr__, and validation via type hints and Field descriptors.
Define classmethods/staticmethods outside the @fields class or use a different decorator pattern.
Use keyword argument 'name' only when necessary; prefer relying on the variable name.
Replace Field(validate=func) with Field(check=func).
No dependency data recorded yet.