def get(self, key, default=None, category=None, return_tagobj=False):
        if self._cache is None or not _TYPECLASS_AGGRESSIVE_CACHE:
            self._recache()
        ret = []
        category = category.strip().lower() if category is not None else None
        searchkey = ["%s-%s" % (key.strip().lower(), category) if key is not None else None for key in make_iter(key)]
        ret = [val for val in (self._cache.get(keystr) for keystr in searchkey) if val]
        ret = [to_str(tag.db_data) for tag in ret] if return_tagobj else ret
        return ret[0] if len(ret) == 1 else (ret if ret else default)
Get the tag for the given key or list of tags.
dataset/ETHPy150Open evennia/evennia/evennia/typeclasses/tags.py/TagHandler.get