Data Attributes

The attribute operator (.) can be used to recursively resolve values from a compound native Python data type such as an object or dictionary. This can be used when the thing which the rule is evaluating has members with their own submembers. If the resolver function fails, the attribute will be checked to determine if it is a builtin attribute.

Builtin Attributes

The following attributes are builtin to the default Context object.

Attribute Name

Attribute Type

ARRAY Attributes

is_empty

BOOLEAN

length

FLOAT

DATETIME Attributes

date

DATETIME

day

FLOAT

hour

FLOAT

microsecond

FLOAT

millisecond

FLOAT

minute

FLOAT

month

FLOAT

second

FLOAT

weekday

STRING

year

FLOAT

zone_name

STRING

STRING Attributes

as_lower

STRING

as_upper

STRING

is_empty

BOOLEAN

length

FLOAT