# cattrs — card for AI agents

Structured data serialization for attrs and dataclasses with composition support.

Category: Forms, validation and schemas · PyPI package `cattrs` · latest version 26.2.1 (checked 2026-11-01)
Install: `pip install cattrs`
License: MIT (permissive)

In your own product (generator, app, hosted service): **yes**. Permissive license: ship it inside your own product, closed or open source, and keep its license and copyright notice.

## Numbers (AgentGid data)
- Gid Score: 50.9 (#1762 of all tools, 39 of 63 in its category)
- Used in 3 public projects set up for AI coding agents (0.0%)
- Downloads last week: 8,438,968 (as of 2026-11-17), +9.4% over 4 weeks
- GitHub stars: 1,060 (as of 2026-11-17)
- Last push: 2026-11-02

## Often used with
attrs 98.1%, charset-normalizer 96.2%, Click 96.2%, Jinja2 96.2%, AnyIO 94.2%, MarkupSafe 94.2%

## Checked alternatives (same job)
- Pydantic: https://agentgid.com/tools/pydantic/agent.md
- marshmallow: https://agentgid.com/tools/marshmallow/agent.md
- dataclasses-json: https://agentgid.com/tools/dataclasses-json/agent.md
- msgspec: https://agentgid.com/tools/msgspec/agent.md

## Links
- AgentGid page: https://agentgid.com/tools/cattrs/
- Homepage: https://catt.rs
- Repository: https://github.com/python-attrs/cattrs

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
