Table Of Contents

Previous topic

Propy Documentation

Next topic

propy.repr_method

This Page

Propy (propy)

This package contains the following convenience functions for creating methods and properties with special behaviors.

Methods

repr_method(*args) A convenience wrapper for creating class __repr__ methods.

Properties

enum_property(name, iterable) Creates a class property that has an iterable qualifier.
bool_property(name) Creates a class property that has a boolean value input qualifier.
str_property(name) Creates a class property that is restricted to string values.
index_property(index) Creates a named setter and getter for an object that is a subclass of a list or array.
weakref_property(name) Creates a class property with a weak reference.
array_property(name, **kwargs) Creates a class property that converts input data to a NumPy array.
lookup_property(name, lookup) Creates a class property that looks up data from a supplied dictionary.
func_property(name[, lookup]) Creates a class property that is restricted to a callable object.