BSD Ports

devel/py-autoprop 1.0.1_1 FreeBSD

Infer properties from accessor methods

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
License
MIT
Categories
devel, python
Package size
9.1 KiB, 23.1 KiB installed

Description

Properties are a feature in python that allow accessor functions (i.e. getters and setters) to masquerade as regular attributes. This makes it possible to provide transparent APIs for classes that need to cache results, lazily load data, maintain invariants, or react in any other way to attribute access.

Unfortunately, making a property requires an annoying amount of boilerplate code. There are a few ways to do it, but the most common and most succinct requires you to decorate two functions (with two different decorators) and to type the name of the attribute three times:

In the other systems

SystemPortVersion
FreeBSDdevel/py-autoprop1.0.1_1
DragonFlydevel/py-autoprop1.0.1_1
HardenedBSDdevel/py-autoprop1.0.1_1
GhostBSDdevel/py-autoprop1.0.1_1

Install

Binary package:

pkg install py312-autoprop

From the ports tree:

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

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

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

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:latest1.0.1_11.0.1_11.0.11.0.1_11.0.1_1
FreeBSD:14:quarterly1.0.1_11.0.1_1n/a1.0.1_11.0.1_1
FreeBSD:15:latest1.0.1_11.0.1_1n/a1.0.1_11.0.1_1
FreeBSD:15:quarterly1.0.1_11.0.1_1n/an/an/a
FreeBSD:16:latest1.0.1_11.0.1_1n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

The Makefile names none itself; they come from USES and USE_*.

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

Build dependencies 11
Run dependencies 7
Required by 1

Configuration

No options to configure.

USES
python
Service scripts
none

Files

distinfo 1
FileSizeSHA256
autoprop-1.0.1.tar.gz14685012b74405dc02c7527366d351bb85397b8964446b601c956594e4eae405837da
Master sites 1
  • PYPI

Commit history 0

No commits in the history this site was built from.