1 2 3 4 5 6 7 8 9 10 11 12 13 14
from typing import Dict import attr from trullo.shortener import Shortener @attr.s(auto_attribs=True) class TrlList: id: str raw_data: Dict def get_normalized_name(self) -> str: return Shortener.normalize(self.raw_data['name'])