Ross ROSS = Recommend OSS · open-source software intelligence for agents

python-attrs/attrs

Python Classes Without Boilerplate observed · 2026-08-28

github.com/python-attrs/attrs · homepage · Python · MIT (permissive) observed · 2026-08-28

Health v2 · maintenance only

87/100

  • Activity 99
  • Release rhythm 63
  • Longevity 100
How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.

  • gap_med: 45
  • age_days: 4236
  • days_rel: 167
  • days_push: 8
  • n_releases_24m: 6

Full methodology

Adoption not part of the score

5833 stars · 470 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded

attrs is a Python library that generates boilerplate dunder methods like __init__, __eq__, and __repr__ for your classes, letting you define them concisely with decorators and type annotations. It is a mature, widely trusted package used in production including by NASA.

Use cases

  • reduce boilerplate in python classes
  • auto-generate __init__ and __repr__
  • define data classes with validation
  • compare and hash objects without writing dunders
  • write concise immutable value objects
  • alternative to dataclasses with more features

When to choose

  • you write many plain Python classes and want less boilerplate
  • you need validators, converters, or slots beyond stdlib dataclasses
  • you want a mature, dependency-light, well-documented library

When to avoid

  • stdlib dataclasses meet your needs and you want zero dependencies
  • you need ORM-style database mapping rather than plain classes

Facets

library · maturity stable

developer-tools serialization developer-tools programming-languages python oop classes dunder-methods attributes dataclasses

2 sources

Member repositories

RepositoryRoleHealth v2
python-attrs/attrsmain87

For agents

markdown · JSON · MCP: product_card(name="python-attrs/attrs")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem