def value_to_property(value):
    """ Convert value in a Property object """
    if type(value) in MAP_TYPES_PROPERTIES:
        prop = MAP_TYPES_PROPERTIES[type(value)]()
        return prop
    else:
        return value

# utilities functions
dataset/ETHPy150Open benoitc/couchdbkit/couchdbkit/schema/properties.py/value_to_property/original