dev-python / autoprop

Infer properties from accessor methods

Official package sites : · ·

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.

v1.0.2 :: 0 :: gentoo

USE flags


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


Build with Python 3.7
Build with Python 3.8
Build with Python 3.9

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

dev-lang / python-exec : Python script wrapper

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

Repository mirror & CI · gentoo
Merge updates from master
Michał Górny · gentoo
*/*: Remove obsolete values from PYTHON_COMPAT
Signed-off-by: Michał Górny <>
Repository mirror & CI · gentoo
Merge updates from master
Dennis Lamm · gentoo
dev-python/autoprop: new package
Signed-off-by: Dennis Lamm <> Closes: Signed-off-by: Dennis Lamm <>