Skip to content

PRINT_DATACONTAINER

Download Flojoy Studio to try this app
Return a String containing input DataContainer information. Must use the TEXT_VIEW block to view the text. Params: default : DataContainer The input DataContainer to print. Returns: out : DataContainer String: Input datacontainer information
Python Code
from flojoy import DataContainer, String, flojoy
from pprint import pformat


@flojoy()
def PRINT_DATACONTAINER(
    default: DataContainer,
) -> String:
    """Return a String containing input DataContainer information.

    Must use the TEXT_VIEW block to view the text.

    Parameters
    ----------
    default : DataContainer
        The input DataContainer to print.

    Returns
    -------
    DataContainer
        String: Input datacontainer information
    """

    return String(s=f"```\n{pformat(default.to_dict())}\n```")

Find this Flojoy Block on GitHub

Example App

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