Package Info

python-attrs


Attributes without boilerplate


Development/Languages/Python

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
URL: https://github.com/hynek/attrs/

Categories

Releases

Package Version Update ID Released Package Hub Version Platforms Subpackages
17.4.0-bp150.3.1 info GA Release 2018-07-30 15
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • python2-attrs
  • python3-attrs
17.4.0-bp151.1.1 info GA Release 2019-07-17 15 SP1
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • python2-attrs
  • python3-attrs
19.3.0-bp152.1.1 info GA Release 2020-05-27 15 SP2
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • python2-attrs
  • python3-attrs