GroupDocs.Comparison for Python via .NET can compare values from str variables directly — useful when the text never lives on disk (CLI input, REST request bodies, in-memory diffs).
Set LoadOptions.load_text to True to tell Comparer that the first argument is a literal string, not a file path. Read the merged result back via get_result_string().