BSD Ports

devel/py-characteristic 14.3.0_1 MidnightBSD

Python attributes without boilerplate

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
License
mit
Categories
devel, python

Description

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.

In the other systems

SystemPortVersion
MidnightBSDdevel/py-characteristic14.3.0_1
FreeBSDdevel/py-characteristic14.3.0_1
OpenBSDdevel/py-characteristic14.3.0p10
DragonFlydevel/py-characteristic14.3.0_1
HardenedBSDdevel/py-characteristic14.3.0_1
GhostBSDdevel/py-characteristic14.3.0_1

Install

Binary package:

mport install ${PYTHON_PKGNAMEPREFIX}characteristic

From mports:

cd /usr/mports/devel/py-characteristic && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}characteristic>0:devel/py-characteristic

Dependencies

No port depends on this one.

Configuration

No options to configure.

USES
python
Service scripts
none

Files

distinfo 1
FileSizeSHA256
characteristic-14.3.0.tar.gz26993ded68d4e424115ed44e5c83c2a901a0b6157a959079d7591d92106ffd3ada380
Master sites 1
  • PYPI