def get_sync_data(self):
        return dict((key, value) for key, value in self.__dict__.items()
                                                  if key in self._attrs_to_sync)
Get all data relevant to sync the session.
dataset/ETHPy150Open evennia/evennia/evennia/server/session.py/Session.get_sync_data