def get_random_user(): profile = proxies.get_json_resource('random') return TIMJUser(**profile['person'])
def from_user(cls, username): raw_jam = proxies.get_json_resource(username).get('jam') if raw_jam: return cls(**util.fix(raw_jam)) else: return None