Text API¶
API for working with the Text type.
Import this module like this:
from sympathy.api import text
Class text.File
¶
- class sympathy.typeutils.text.File(filename: Optional[str] = None, mode: str = 'r', **kwargs)[source]¶
A Text type containing arbitrary text, be it Hamlet or some json encoded data structure.
Any node port with the Text type will produce an object of this kind.
- names(kind=None, fields=None, **kwargs)[source]¶
Return a formatted list with a name and type of the data. columns.