Source code for aim.sdk.objects.text

from import CustomObject
from import BLOB

[docs]@CustomObject.alias('aim.text') class Text(CustomObject): """Text object used to store text objects in Aim repository. Args: text (:obj:): str object used to construct `aim.Text`. """ AIM_NAME = 'aim.text' def __init__(self, text): super().__init__() if not isinstance(text, str): raise TypeError('`text` must be a string.')['data'] = BLOB(data=text) def json(self): return {} @property def data(self): return['data'].load() def __repr__(self): return