Python usage¶
Classes¶
differently supports difference visualisations through a library of classes:
StringDifferentlyvisualises the differences between stringsTextDifferentlyvisualises the differences between multi-line text bodiesListDifferentlyvisualises the differences between lists of stringsJsonDifferentlyvisualises the differences between objects as JSONYamlDifferentlyvisualises the differences between objects as YAML
Rendering¶
A difference can be visualised by casting any class instance to a string (i.e. str(...)).
If you want to avoid string manipulation, you can render directly to any string IO stream via each class’s .render() function.