Contents

attrs 25.4.0

0

Classes Without Boilerplate

Classes Without Boilerplate

Stars: 5733, Watchers: 5733, Forks: 415, Open Issues: 145

The python-attrs/attrs repo was created 11 years ago and the last code push was 1 weeks ago.
The project is extremely popular with a mindblowing 5733 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
None
License
None
Homepage
None
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 145 open issues on GitHub

  • Question: type annotating a validator callback
  • No way to make instances of different classes equal without rewriting __eq__() entirely
  • Fix optional validator to accept tuples of len > 1
  • FAILED tests/test_packaging.py - New contributor needs help
  • Replace cached_property on slotted classes with a new descriptor instead of writing __getattr__
  • Support evolving to a subclass (possibly any class)

See more issues on GitHub

Related Packages & Articles