Classes Without Boilerplate

About attrs

Classes Without Boilerplate

Key Features

  • Declarative class definitions with minimal boilerplate
  • Automatic dunder method generation
  • Field validators and converters for safer models
  • Supports frozen, slotted, and performance-oriented class options

Installation

uv add attrs

Related Tools

Quick Info

Latest Version
25.4.0
First Release
2015
License
Unknown

About pytools.dev

pytools.dev is your go-to directory for the best Python tools, libraries, and frameworks—designed for the modern Python developer.

© 2026 pytools.dev. All rights reserved.
Created with ❤️ by James Fricker