| Port details |
- py-attrs Python attributes without boilerplate
- 26.1.0 devel
=12 26.1.0Version of this port present on the latest quarterly branch. - Maintainer: sunpoet@FreeBSD.org
 - Port Added: 2016-03-10 16:23:35
- Last Update: 2026-06-26 20:44:37
- Commit Hash: 3d5385f
- People watching this port, also watch:: libedit, py311-pycparser, glib, libunistring, py312-idna
- Also Listed In: python
- License: MIT
- WWW:
- https://www.attrs.org/en/stable/
- https://github.com/python-attrs/attrs
- 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.
 ¦ ¦ ¦ ¦ 
- Manual pages:
- FreshPorts has no man page information for this port.
- pkg-plist: as obtained via:
make generate-plist - There is no configure plist information for this port.
- USE_RC_SUBR (Service Scripts)
- no SUBR information found for this port
- Dependency lines:
-
- ${PYTHON_PKGNAMEPREFIX}attrs>0:devel/py-attrs@${PY_FLAVOR}
- To install the port:
- cd /usr/ports/devel/py-attrs/ && make install clean
- To add the package, run one of these commands:
- pkg install devel/py-attrs
- pkg install py312-attrs
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above. NOTE: This is a Python port. Instead of py312-attrs listed in the above command, you can pick from the names under the Packages section.- PKGNAME: py312-attrs
- Package flavors (<flavor>: <package>)
- distinfo:
- TIMESTAMP = 1775587228
SHA256 (attrs-26.1.0.tar.gz) = d03ceb89cb322a8fd706d4fb91940737b6642aa36998fe130a9bc96c985eff32
SIZE (attrs-26.1.0.tar.gz) = 952055
Packages (timestamps in pop-ups are UTC):
- Dependencies
- NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
- Build dependencies:
-
- py312-hatch-fancy-pypi-readme>=23.2.0 : devel/py-hatch-fancy-pypi-readme@py312
- py312-hatch-vcs>=0 : devel/py-hatch-vcs@py312
- py312-hatchling>=0 : devel/py-hatchling@py312
- python3.12 : lang/python312
- py312-build>=0 : devel/py-build@py312
- py312-installer>=0 : devel/py-installer@py312
- Test dependencies:
-
- py312-cloudpickle>=0 : devel/py-cloudpickle@py312
- py312-hypothesis>=0 : devel/py-hypothesis@py312
- py312-mypy>=1.11.1 : devel/py-mypy@py312
- py312-Pympler>=0 : devel/py-pympler@py312
- py312-pytest-mypy-plugins>=0 : devel/py-pytest-mypy-plugins@py312
- py312-pytest-xdist>=0 : devel/py-pytest-xdist@py312
- py312-pytest>=7,1 : devel/py-pytest@py312
- python3.12 : lang/python312
- Runtime dependencies:
-
- python3.12 : lang/python312
- This port is required by:
- for Build
-
- x11/libei
-
Deleted ports which required this port:
- for Run
-
- archivers/py-extractcode
- astro/py-pytest-astropy
- databases/pg_activity
- devel/nox
- devel/py-aiorpcX
- devel/py-aiorpcX-legacy
- devel/py-attrs-strict
-
Deleted ports which required this port:
- * - deleted ports are only shown under the This port is required by section. It was harder to do for the Required section. Perhaps later...
Configuration Options:
- No options to configure
- Options name:
- devel_py-attrs
- USES:
- cpe python
- FreshPorts was unable to extract/find any pkg message
- Master Sites:
|