mirror of
https://git.freebsd.org/ports.git
synced 2025-05-22 11:48:35 -04:00
12 lines
475 B
Text
12 lines
475 B
Text
characteristic is a 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 characteristic gives you
|
|
any or all of:
|
|
a nice human-readable __repr__,
|
|
a complete set of comparison methods,
|
|
immutability for attributes,
|
|
and a kwargs-based initializer
|
|
without writing dull boilerplate code again and again.
|
|
|
|
WWW: https://github.com/hynek/characteristic
|