Plain text

Actions for handling plain text files

Module: implementation.datasources.plain_text



PlainTextRead

Read plain text file. Subclass of Action. Type of Action[Dict[str, Any], Dict[str, Any]]


execute

Arguments:

  • input_data (Any): Expected keys:

    • "path_to_file" (str): Path to plain text file;

Returns:

  • Dict[str, Any]: Expected keys:

    • "text" (str): Text;




PlainTextWrite

Write plain text file. Subclass of Action. Type of Action[Dict[str, Any], None]


execute

Arguments:

  • input_data (Any): Expected keys:

    • "path_to_file" (str): Path to plain text file;

    • "text" (str): Text to write;




PlainTextAppend

Append to plain text file. Subclass of Action. Type of Action[Dict[str, Any], None]


execute

Arguments:

  • input_data (Any): Expected keys:

    • "path_to_file" (str): Path to plain text file;

    • "text" (str): Text to append;



Last updated