DESCRIPTION.rst 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. characteristic: Python attributes without boilerplate.
  2. ======================================================
  3. .. image:: https://pypip.in/version/characteristic/badge.svg
  4. :target: https://pypi.python.org/pypi/characteristic/
  5. :alt: Latest Version
  6. .. image:: https://travis-ci.org/hynek/characteristic.svg
  7. :target: https://travis-ci.org/hynek/characteristic
  8. :alt: CI status
  9. .. image:: https://coveralls.io/repos/hynek/characteristic/badge.png?branch=master
  10. :target: https://coveralls.io/r/hynek/characteristic?branch=master
  11. :alt: Current coverage
  12. .. begin
  13. ``characteristic`` is an `MIT <http://choosealicense.com/licenses/mit/>`_-licensed Python package with class decorators that ease the chores of implementing the most common attribute-related object protocols.
  14. You just specify the attributes to work with and ``characteristic`` gives you any or all of:
  15. - a nice human-readable ``__repr__``,
  16. - a complete set of comparison methods,
  17. - immutability for attributes,
  18. - and a kwargs-based initializer (that cooperates with your existing one and optionally even checks the types of the arguments)
  19. *without* writing dull boilerplate code again and again.
  20. This gives you the power to use actual classes with actual types in your code instead of confusing ``tuple``\ s or confusingly behaving ``namedtuple``\ s.
  21. So put down that type-less data structures and welcome some class into your life!
  22. ``characteristic``\ ’s documentation lives at `Read the Docs <https://characteristic.readthedocs.org/>`_, the code on `GitHub <https://github.com/hynek/characteristic>`_.
  23. It’s rigorously tested on Python 2.6, 2.7, 3.3+, and PyPy.
  24. Authors
  25. -------
  26. ``characteristic`` is written and maintained by `Hynek Schlawack <https://hynek.me/>`_.
  27. The development is kindly supported by `Variomedia AG <https://www.variomedia.de/>`_.
  28. It’s inspired by Twisted’s `FancyEqMixin <http://twistedmatrix.com/documents/current/api/twisted.python.util.FancyEqMixin.html>`_ but is implemented using class decorators because `sub-classing is bad for you <https://www.youtube.com/watch?v=3MNVP9-hglc>`_, m’kay?
  29. The following folks helped forming ``characteristic`` into what it is now:
  30. - `Adam Dangoor <https://github.com/adamtheturtle>`_
  31. - `Glyph <https://github.com/glyph>`_
  32. - `Itamar Turner-Trauring <https://github.com/itamarst>`_
  33. - `Jean-Paul Calderone <https://github.com/exarkun>`_
  34. - `Julian Berman <https://github.com/julian>`_
  35. - `Richard Wall <https://github.com/wallrj>`_