Metadata-Version: 2.1
Name: znfields
Version: 0.1.0
Summary: Lazy evaluation of dataclass fields
License: Apache-2.0
Author: Fabian Zills
Author-email: fzills@icp.uni-stuttgart.de
Requires-Python: >=3.10,<4.0
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Description-Content-Type: text/markdown

# znfields

Provide a `getter` for `dataclasses.fields` to allow e.g. for lazy evaluation.

```bash
pip install znfields
```

## Example

```python
import dataclasses
import znfields

def example1_parameter_getter(self, name):
    return f"{name}:{self.__dict__[name]}"

@dataclasses.dataclass
class Example3(znfields.Base):
    parameter: float = znfields.field(getter=example1_parameter_getter)
```

