Skip to content

DATACONTAINER_TYPE

The DATACONTAINER_TYPE node returns a TextBlob containing the input DataContainer type (e.g. Vector).Must use the TEXT_VIEW node to view the text.Params:Returns:out : DataContainerTextBlob: Input DataContainer type
Python Code
from flojoy import flojoy, DataContainer, TextBlob


@flojoy()
def DATACONTAINER_TYPE(
    default: DataContainer,
) -> TextBlob:
    """The DATACONTAINER_TYPE node returns a TextBlob containing the input DataContainer type (e.g. Vector).

    Must use the TEXT_VIEW node to view the text.

    Returns
    -------
    DataContainer
        TextBlob: Input DataContainer type
    """

    return TextBlob(text_blob=default.type)

Find this Flojoy Block on GitHub

Example

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