Conditions - GenesisCoast/conditions-py GitHub Wiki

Common

get_value()

Returns the value that is currently being validated.

value = "test"

Condition\
    .requires_str(value, "value")\
    .get_value() # Returns "test"

Condition\
    .ensures_str(value, "value")\
    .get_value() # Returns "test"