devel/py-attrs 26.1.0_1 MidnightBSD
Python attributes without boilerplate
- System
- MidnightBSD
- Repository
- mports
- Maintainer
- [email protected]
- Last update
- Commit
22173208f1- License
- mit
- Categories
- devel, python
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
| System | Port | Version |
|---|---|---|
| MidnightBSD | devel/py-attrs | 26.1.0_1 |
| FreeBSD | devel/py-attrs | 26.1.0 |
| OpenBSD | devel/py-attrs | 26.1.0 |
| NetBSD | devel/py-attrs | 26.1.0 |
| DragonFly | devel/py-attrs | 25.3.0 |
| HardenedBSD | devel/py-attrs | 26.1.0 |
| GhostBSD | devel/py-attrs | 26.1.0 |
| OPNsense | devel/py-attrs | 26.1.0 |
Install
Binary package:
mport install ${PYTHON_PKGNAMEPREFIX}attrs
From mports:
cd /usr/mports/devel/py-attrs && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}attrs>0:devel/py-attrs
Dependencies
As this port's Makefile names them.
Build 3
${PYTHON_PKGNAMEPREFIX}hatch-fancy-pypi-readme>=23.2.0: devel/py-hatch-fancy-pypi-readme${PYTHON_PKGNAMEPREFIX}hatch-vcs>=0: devel/py-hatch-vcs${PYTHON_PKGNAMEPREFIX}hatchling>=0: devel/py-hatchling
Build dependencies 3
Required by 25
- ai/py-mistral-vibe
- ai/py-sagemaker-core
- devel/py-cattrs
- devel/py-hypothesis
- devel/py-jschema-to-python
- devel/py-jsonschema
- devel/py-outcome
- devel/py-pytest-mypy
- devel/py-pytest-subtests
- devel/py-pytest4
- devel/py-ramlfications
- devel/py-referencing
- devel/py-sarif-om
- devel/py-twisted
- graphics/py-fiona
- graphics/py-rasterio
- mail/py-aiosmtpd
- net/py-trio
- print/py-ufolib2
- security/py-service-identity
- www/py-aiohttp
- www/py-requests-cache
- www/py-treq
- x11-fonts/py-fontmake
- x11/libei
Configuration
No options to configure.
- USES
- python cpe
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| attrs-26.1.0.tar.gz | 952055 | d03ceb89cb322a8fd706d4fb91940737b6642aa36998fe130a9bc96c985eff32 |
Master sites 1
- PYPI