BSD Ports

devel/py-attrs 25.3.0 DragonFly

Python attributes without boilerplate

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
MIT
Categories
devel, python
Package size
100.1 KiB, 629.3 KiB installed

Description

attrs is an MIT-licensed Python package with class decorators that ease the chores of implementing the most common attribute-related object protocols:

>>> import attr >>> @attr.s ... class C(object): ... x = attr.ib(default=42) ... y = attr.ib(default=attr.Factory(list)) >>> i = C(x=1, y=2)

(If you don't like the playful attr.s and attr.ib, you can also use their no-nonsense aliases attr.attributes and attr.attr).

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.

In the other systems

The newest version among them is 26.1.0, as upstream numbers it.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
DragonFlydevel/py-attrs25.3.0none known-[email protected]-
FreeBSDdevel/py-attrs26.1.0 newestnone known-[email protected]-
OpenBSDdevel/py-attrs26.1.0 newestno data-The OpenBSD ports mailing-list <[email protected]>2026-09-03
NetBSDdevel/py-attrs26.1.0 newestnone known-[email protected]2026-10-16
MidnightBSDdevel/py-attrs26.1.0_1 newestno data-[email protected]2026-08-07
HardenedBSDdevel/py-attrs26.1.0 newestno data-[email protected]-
GhostBSDdevel/py-attrs26.1.0 newestno data-[email protected]-
OPNsensedevel/py-attrs26.1.0 newestno data-[email protected]-

Compare across BSDs

Install

Binary package:

pkg install py311-attrs

From DPorts:

cd /usr/dports/devel/py-attrs && make install clean

Dependency graph

Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.

Dependencies

Run dependencies 1