Port details on branch 2022Q2 |
- py-autoprop Infer properties from accessor methods
- 1.0.1 devel =0 1.0.1Version of this port present on the latest quarterly branch.
- Maintainer: db@FreeBSD.org
- Port Added: 2020-03-20 14:43:23
- Last Update: 2023-06-27 19:34:34
- Commit Hash: 3d9a815
- Also Listed In: python
- License: MIT
- WWW:
- https://pypi.org/project/autoprop/
- 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:
- ¦ ¦ ¦ ¦
- Manual pages:
- FreshPorts has no man page information for this port.
- pkg-plist: as obtained via:
make generate-plist - There is no configure plist information for this port.
- Dependency lines:
-
- ${PYTHON_PKGNAMEPREFIX}autoprop>0:devel/py-autoprop@${PY_FLAVOR}
- To install the port:
- cd /usr/ports/devel/py-autoprop/ && make install clean
- To add the package, run one of these commands:
- pkg install devel/py-autoprop
- pkg install py39-autoprop
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 py39-autoprop listed in the above command, you can pick from the names under the Packages section.- PKGNAME: py39-autoprop
- Package flavors (<flavor>: <package>)
- distinfo:
- TIMESTAMP = 1584714989
SHA256 (autoprop-1.0.1.tar.gz) = 012b74405dc02c7527366d351bb85397b8964446b601c956594e4eae405837da
SIZE (autoprop-1.0.1.tar.gz) = 14685
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:
-
- py39-setuptools>=63.1.0 : devel/py-setuptools@py39
- python3.9 : lang/python39
- Test dependencies:
-
- python3.9 : lang/python39
- Runtime dependencies:
-
- py39-setuptools>=63.1.0 : devel/py-setuptools@py39
- python3.9 : lang/python39
- This port is required by:
- for Build
-
- graphics/py-glooey
Configuration Options:
- No options to configure
- Options name:
- devel_py-autoprop
- USES:
- python
- FreshPorts was unable to extract/find any pkg message
- Master Sites:
|