PRINT_DATACONTAINER
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```")
Example
Having problems with this example app? Join our Discord community and we will help you out!