def value(self, data):
        """Get value from data."""
        value = data.get(self.name)
        if value:
            return int(value)
        return self.default
def value ( self , data ) : value = data . get ( self . name ) if value : return int ( value ) return self . default
Get value from data.