~mapperr/trl

ref: 65a3ac89edf3692c7663fabc4330d4a8bdc23ef3 trl/trullo/trl_card.py -rw-r--r-- 266 bytes
65a3ac89 — mapperr Update help 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from typing import Dict

import attr

from trullo.shortener import Shortener


@attr.s(auto_attribs=True)
class TrlCard:
    id: str
    short_link: str
    raw_data: Dict

    def get_normalized_name(self):
        return Shortener.normalize(self.raw_data['name'])