Package Info


Attributes without boilerplate


attrs is an MIT-licensed Python package with class decorators that ease the chores of implementing the most common attribute-related object protocols.

You just specify the attributes to work with and attrs gives you:

  • a nice human-readable repr,
  • a complete set of comparison methods,
  • an initializer,
  • and much more

without writing dull boilerplate code again and again.

This gives you the power to use actual classes with actual types in your code instead of confusing tuples or confusingly behaving namedtuples.

So put down that type-less data structures and welcome some class into your life!

python-attrs is the successor to python-characterstic

License: MIT



Package Version Update ID Released Package Hub Version Platforms Subpackages
19.3.0-bp153.2.1 info openSUSE-2022-66 2022-03-02 15 SP3 Update
19.3.0-bp152.1.8 info GA Release 2020-06-23 15 SP2