I want to know if there is a way to access the objects created using any Colander Model class using the dot operator.
Example:
class Image(colander.MappingSchema):
url = colander.SchemaNode(colander.String())
width = colander.SchemaNode(colander.Int())
height = colander.SchemaNode(colander.Int())
So, using this model, if I deserialize a json string,
image = Image.deserialize("{'url':'xyz', 'width':10, 'height':12}")
I want to access the model attributes of Image using dot ( . ) operator.
Like,
image.url
image.width
image.height
And these attributes should be available as IDE code completion suggestion once its accessible using dot operator.
The purpose of this is to help clients easily get the model attributes without looking into the model.