how to know the attributes of an object in python code example
Example 1: python get attributes of object
getattr(object, 'attribute_name')
Example 2: python get attributes of object
field_name = "fullName"
print getattr(user, field_name) # prints content of user.fullName