compares-0.1.1
توضیحات
Easily define object comparisons on a list of attributes
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | compares-0.1.1 |
| نام | compares |
| نسخه کتابخانه | 0.1.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Julian Berman |
| ایمیل نویسنده | Julian@GrayVines.com |
| آدرس صفحه اصلی | https://github.com/Julian/Compares |
| آدرس اینترنتی | https://pypi.org/project/compares/ |
| مجوز | MIT |
========
Compares
========
``Compares`` is a module that defines a single decorator, ``compares.via``\ ,
which removes some boilerplate around defining ``__eq__``\ , ``__ne__`` and
``__repr__`` for object comparisons and display.
It takes advantage of the fact that there is often a set of relevant attributes
(fields) which should be used to compare instances.
It is inspired by `twisted.python.util.FancyEqMixin
<https://twistedmatrix.com/documents/current/api/twisted.python.util.FancyEqMixin.html>`_\ .
نحوه نصب
نصب پکیج whl compares-0.1.1:
pip install compares-0.1.1.whl
نصب پکیج tar.gz compares-0.1.1:
pip install compares-0.1.1.tar.gz