Python library for declarative class fields, validation, conversion, and constructors.
pyfields is a Python library that provides declarative field definitions for classes, centralizing defaults, type hints, validators, converters, and documentation. It supports optional runtime type checking (typeguard or pytypes), integration with validation tooling, and helpers like @autofields and @autoclass to generate constructors and representations. It is suited for objectβoriented Python code, mix-ins, and libraries that need explicit, reusable attribute metadata without imposing base classes.
0