Contents

attrs 23.2.0

0

Classes Without Boilerplate

Classes Without Boilerplate

Stars: 5058, Watchers: 5058, Forks: 357, Open Issues: 130

The python-attrs/attrs repo was created 9 years ago and the last code push was Yesterday.
The project is extremely popular with a mindblowing 5058 github stars!

How to Install attrs

You can install attrs using pip

pip install attrs

or add it to a project with poetry

poetry add attrs

Package Details

Author
License
Homepage
PyPi:
https://pypi.org/project/attrs/
Documentation:
https://www.attrs.org/
GitHub Repo:
https://github.com/python-attrs/attrs

Classifiers

No  attrs  pypi packages just yet.

Errors

A list of common attrs errors.

Code Examples

Here are some attrs code examples and snippets.

GitHub Issues

The attrs package has 130 open issues on GitHub

  • Deduplicate annotation extraction
  • Fix set_closure_cell on 3.11
  • Fix hashing for custom eq objects
  • Compatibility with Python 3.11
  • more visibility for 21.3.0 breaking change
  • Mypy error "Cannot determine init type from converter" when using type checking, overloads and converters
  • Mypy improvements
  • mypy returns "Incompatible types in assignment" with on_setattr=setters.convert
  • Type annotation for attr.ib wrappers functions
  • [RFC] Add optional automatic validation and conversion
  • Option to "partially override" an attribute from a parent class?
  • Accessing @attr.s() decorator parameter values
  • Store attribute name used in init parameters
  • Add decorator option for converters
  • Self documentation - current state

See more issues on GitHub

Related Packages & Articles