devel/py-autoprop 1.0.1_1 DragonFly
Infer properties from accessor methods
- System
- DragonFly
- Repository
- DPorts
- Maintainer
- [email protected] (as in FreeBSD)
- License
- MIT
- Categories
- devel, python
- Package size
- 8.3 KiB, 24.5 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
The newest version among them is 1.0.1, as upstream numbers it.
| System | Port | Version | Vulnerabilities | Status | Maintainer | Last update |
|---|---|---|---|---|---|---|
| DragonFly | devel/py-autoprop | 1.0.1_1 newest | none known | - | [email protected] | - |
| FreeBSD | devel/py-autoprop | 1.0.1_1 newest | none known | - | [email protected] | - |
| HardenedBSD | devel/py-autoprop | 1.0.1_1 newest | no data | - | [email protected] | - |
| GhostBSD | devel/py-autoprop | 1.0.1_1 newest | no data | - | [email protected] | - |
Install
Binary package:
pkg install py311-autoprop
From DPorts:
cd /usr/dports/devel/py-autoprop && make install clean
Dependency graph
Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.
Dependencies
Run dependencies 1
No port depends on this one.