dev-python / autoprop

Infer properties from accessor methods

Official package sites : https://github.com/kalekundert/autoprop/ · https://pypi.org/project/autoprop/ ·

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. The autoprop module simplifies this process by searching your class for accessor methods and adding properties corresponding to any such methods it finds.

v2.2.0 :: 0 :: gentoo

Modified
License
MIT
Keywords
~amd64
USE flags
test

v2.1.1 :: 0 :: gentoo

Modified
License
MIT
Keywords
~amd64
USE flags
test

v2.1.0 :: 0 :: gentoo

Modified
License
MIT
Keywords
~amd64
USE flags
test

v2.0.0 :: 0 :: gentoo

Modified
License
MIT
Keywords
~amd64
USE flags
test

v1.0.2 :: 0 :: gentoo

Modified
License
MIT
Keywords
~amd64
USE flags
test

General

test
Enable dependencies and/or preparations necessary to run tests (usually controlled by FEATURES=test but can be toggled independently)

python_targets

python3_7
Build with Python 3.7
python3_8
Build with Python 3.8
python3_9
Build with Python 3.9

dev-lang / python : An interpreted, interactive, object-oriented programming language

dev-lang / python-exec : Python script wrapper

dev-python / signature_dispatch : Execute the first function that matches the given arguments

dev-python / glooey : An object-oriented GUI library for pyglet

Repository mirror & CI · gentoo
Merge updates from master
Michał Górny · gentoo
dev-python/autoprop: Bump to 2.2.0
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Repository mirror & CI · gentoo
Merge updates from master
Michał Górny · gentoo
dev-python/autoprop: Bump to 2.1.1
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Repository mirror & CI · gentoo
Merge updates from master
Michał Górny · gentoo
dev-python/autoprop: Bump to 2.1.0
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Repository mirror & CI · gentoo
Merge updates from master
Michał Górny · gentoo
dev-python/autoprop: Bump to 2.0.0
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Repository mirror & CI · gentoo
Merge updates from master
Michał Górny · gentoo
*/*: Remove obsolete values from PYTHON_COMPAT
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Repository mirror & CI · gentoo
Merge updates from master
Dennis Lamm · gentoo
dev-python/autoprop: new package
Signed-off-by: Dennis Lamm <expeditioneer@gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/17559 Signed-off-by: Dennis Lamm <expeditioneer@gentoo.org>