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.
| System | Port | Version | Vulnerabilities | Status | Maintainer | Last update |
|---|---|---|---|---|---|---|
| DragonFly | devel/py-attrs | 25.3.0 | none known | - | [email protected] | - |
| FreeBSD | devel/py-attrs | 26.1.0 newest | none known | - | [email protected] | - |
| OpenBSD | devel/py-attrs | 26.1.0 newest | no data | - | The OpenBSD ports mailing-list <[email protected]> | 2026-09-03 |
| NetBSD | devel/py-attrs | 26.1.0 newest | none known | - | [email protected] | 2026-10-16 |
| MidnightBSD | devel/py-attrs | 26.1.0_1 newest | no data | - | [email protected] | 2026-08-07 |
| HardenedBSD | devel/py-attrs | 26.1.0 newest | no data | - | [email protected] | - |
| GhostBSD | devel/py-attrs | 26.1.0 newest | no data | - | [email protected] | - |
| OPNsense | devel/py-attrs | 26.1.0 newest | no data | - | [email protected] | - |
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
Required by 64
- databases/pg_activity
- devel/nox
- devel/py-aiorpcX
- devel/py-aiorpcX-legacy
- devel/py-attrs-strict
- devel/py-cattrs
- devel/py-cattrs23
- devel/py-check-wheel-contents
- devel/py-clldutils
- devel/py-flake8-bugbear
- devel/py-frictionless
- devel/py-glom
- devel/py-hypothesis
- devel/py-jschema-to-python
- devel/py-jsonlines
- devel/py-jsonschema
- devel/py-jsonschema3
- devel/py-livemark
- devel/py-lsprotocol
- devel/py-matrix-common
- devel/py-outcome
- devel/py-parver
- devel/py-pytest-mypy
- devel/py-pytest-nunit
- devel/py-pytest-subtests
- devel/py-pytest4
- devel/py-qcs-api-client
- devel/py-ramlfications
- devel/py-referencing
- devel/py-sarif-om
- devel/py-scantree
- devel/py-twisted
- devel/py-usort
- devel/py-xarray-simlab
- devel/py-xsdata-attrs
- devel/pytype
- finance/electrum
- games/pysolfc
- graphics/py-fiona
- graphics/py-rasterio
- graphics/py-ueberzug
- mail/py-aiosmtpd
- mail/py-flanker
- net-im/py-matrix-synapse
- net/py-aiohttp-socks
- net/py-magic-wormhole
- net/py-trio
- net/py-zeep
- print/py-ufolib2
- science/py-asdf
- science/py-cfgrib
- science/py-eccodes
- security/cowrie
- security/py-muacrypt
- security/py-service-identity
- sysutils/kleene-cli
- sysutils/py-mqttwarn
- sysutils/py-ploy
- www/py-aiohttp
- www/py-autobahn
- www/py-requests-cache
- www/py-requests-cache0
- www/py-requests-cache93
- www/py-treq