Skip to content

CLI tool and Python package for visualising the differences between things

License

Notifications You must be signed in to change notification settings

cariad/differently

Repository files navigation

differently

codecov CircleCI

differently is a CLI tool and Python package for visualising the differences between objects.

Installation

pip install differently

Command line usage

On the command line, run differently with the two files to compare:

bash file1 file2

Python usage

To compare two strings, create a TextDifferently instance:

from differently import TextDifferently

print(TextDifferently("foo", "bar"))

To compare two lists, create a ListDifferently instance:

from differently import TextDifferently

print(ListDifferently(["foo"], ["bar"]))