Overview

attrs 25.4, released on October 6, 2025, supports Python 3.14 and improves asdict/astuple performance by 270%.

Main Features

Python 3.14 and performance

Python 3.14 compatibility is ensured. attrs.asdict() and attrs.astuple() are now 270% faster thanks to an internal rewrite.

python
import attrs

@attrs.define
class Point:
    x: float
    y: float
    z: float = 0.0

p = Point(1.0, 2.0, 3.0)
print(attrs.asdict(p))   # {'x': 1.0, 'y': 2.0, 'z': 3.0}
print(attrs.astuple(p))  # (1.0, 2.0, 3.0)

Sources