Port details |
- py-attrs Python attributes without boilerplate
- 21.4.0 devel
=3 21.4.0Version of this port present on the latest quarterly branch. - Maintainer: sunpoet@FreeBSD.org
 - Port Added: 2016-03-10 16:23:35
- Last Update: 2022-01-23 18:19:17
- Commit Hash: 740c132
- People watching this port, also watch:: desktop-file-utils, libraw, py38-pycparser, font-misc-meltho, libinotify
- Also Listed In: python
- License: MIT
- 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.
WWW: https://github.com/python-attrs/attrs
- SVNWeb : git : Homepage
- pkg-plist: as obtained via:
make generate-plist - There is no configure plist information 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 py38-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 py38-attrs listed in the above command, you can pick from the names under the Packages section.- PKGNAME: py38-attrs
- Package flavors (<flavor>: <package>)
- distinfo:
- TIMESTAMP = 1642102253
SHA256 (attrs-21.4.0.tar.gz) = 626ba8234211db98e869df76230a137c4c40a12d72445c45d5f5b716f076e2fd
SIZE (attrs-21.4.0.tar.gz) = 201839
- 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:
-
- py38-setuptools>0 : devel/py-setuptools@py38
- python3.8 : lang/python38
- Runtime dependencies:
-
- py38-setuptools>0 : devel/py-setuptools@py38
- python3.8 : lang/python38
- This port is required by:
- for Build
-
- math/sage
- for Run
-
- devel/py-Automat
- devel/py-aiorpcX
- devel/py-aiortc
- devel/py-cattrs
- devel/py-cmd2
- devel/py-flake8-bugbear
- devel/py-hypothesis
-
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:
- python:3.6+
- FreshPorts was unable to extract/find any pkg message
- Master Sites:
|