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
| System | Port | Version |
|---|---|---|
| FreeBSD | devel/py-autoprop | 1.0.1_1 |
| DragonFly | devel/py-autoprop | 1.0.1_1 |
| HardenedBSD | devel/py-autoprop | 1.0.1_1 |
| GhostBSD | devel/py-autoprop | 1.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.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 1.0.1_1 | 1.0.1_1 | 1.0.1 | 1.0.1_1 | 1.0.1_1 |
| FreeBSD:14:quarterly | 1.0.1_1 | 1.0.1_1 | n/a | 1.0.1_1 | 1.0.1_1 |
| FreeBSD:15:latest | 1.0.1_1 | 1.0.1_1 | n/a | 1.0.1_1 | 1.0.1_1 |
| FreeBSD:15:quarterly | 1.0.1_1 | 1.0.1_1 | n/a | n/a | n/a |
| FreeBSD:16:latest | 1.0.1_1 | 1.0.1_1 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/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
| File | Size | SHA256 |
|---|---|---|
| autoprop-1.0.1.tar.gz | 14685 | 012b74405dc02c7527366d351bb85397b8964446b601c956594e4eae405837da |
Master sites 1
- PYPI
Commit history 0
No commits in the history this site was built from.