Skip to content

TEXT

Return a TextBlob DataContainer with given input text. Params: value : str The value set in Parameters. Returns: out : TextBlob Return the value being set in Parameters.
Python Code
from flojoy import TextBlob, flojoy, DataContainer
from typing import Optional


@flojoy
def TEXT(
    _: Optional[DataContainer] = None,
    value: str = "Hello World!",
) -> TextBlob:
    """Return a TextBlob DataContainer with given input text.

    Parameters
    ----------
    value : str
        The value set in Parameters.

    Returns
    -------
    TextBlob
        Return the value being set in Parameters.
    """

    return TextBlob(text_blob=value)

Find this Flojoy Block on GitHub

Example

Having problems with this example app? Join our Discord community and we will help you out!
React Flow mini map

In this example, a short phrase is entered to TEXT and it get displayed with TEXT_VIEW.