attrs
View on GitHub
5.7k
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 attrsRelated Tools
Pydantic
Data validation and settings management using Python type annotations
27.1k stars
annotated-types
Reusable constraint types to use with typing.Annotated
592 stars
typing-extensions
Backported and Experimental Type Hints for Python 3.9+
553 stars
typing-inspection
Runtime typing introspection tools
60 stars
Quick Info
- Latest Version
- 25.4.0
- First Release
- 2015
- License
- Unknown