def get(self, field):
        """
        Returns the value of a user field.

        :param str field:
            The name of the user field.
        :returns: str -- the value
        """
        if field in ('username', 'uuid', 'app_data'):
            return self.data[field]
        else:
            return self.data.get('app_data', {})[field]
def get ( self , field ) : if field in ( 'username' , 'uuid' , 'app_data' ) : return self . data [ field ] else : return self . data . get ( 'app_data' , { } ) [ field ]
Returns the value of a user field.

        :param str field:
            The name of the user field.
        :returns: str -- the value