BSD Ports

devel/py-attrs 26.1.0 FreeBSD

Python attributes without boilerplate

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
License
MIT
Categories
devel, python
Package size
111.1 KiB, 634.7 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

SystemPortVersion
FreeBSDdevel/py-attrs26.1.0
OpenBSDdevel/py-attrs26.1.0
NetBSDdevel/py-attrs26.1.0
DragonFlydevel/py-attrs25.3.0
MidnightBSDdevel/py-attrs26.1.0_1
HardenedBSDdevel/py-attrs26.1.0
GhostBSDdevel/py-attrs26.1.0
OPNsensedevel/py-attrs26.1.0

Install

Binary package:

pkg install py312-attrs

From the ports tree:

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

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

RUN_DEPENDS=	py312-attrs>0:devel/py-attrs

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest26.1.026.1.022.1.025.3.026.1.0
FreeBSD:14:quarterly26.1.026.1.0n/a25.3.026.1.0
FreeBSD:15:latest26.1.026.1.0n/a25.3.025.3.0
FreeBSD:15:quarterly26.1.026.1.0n/an/an/a
FreeBSD:16:latest26.1.026.1.0n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 3

Test 6

The full lists below include those, and their dependencies in turn.

Build dependencies 23
Run dependencies 7
Required by 1064

The first 100 are listed.

Configuration

No options to configure.

USES
cpe python
Service scripts
none

Files

distinfo 1
FileSizeSHA256
attrs-26.1.0.tar.gz952055d03ceb89cb322a8fd706d4fb91940737b6642aa36998fe130a9bc96c985eff32
Master sites 1
  • PYPI

Commit history 0

No commits in the history this site was built from.