An open API service indexing awesome lists of open source software.

https://github.com/blurfx/diff-imitation

a tiny clone of unix diff
https://github.com/blurfx/diff-imitation

diff unix

Last synced: over 1 year ago
JSON representation

a tiny clone of unix diff

Awesome Lists containing this project

README

          

# diff

A tiny clone of unix `diff`

## Installation

Install requirements
```sh
pip install -r requirements.txt
```

Install as a package (for user)
```sh
python setup.py build
python setup.py install
```

## Run unit tests

Run unit tests with `pytest`
```
pytest -v
```

## Run demo application

First, Install package (see **Installation** section above)
```bash

# make sure you are in "exmaple" directory
cd example

# demo application requires "colored" package for colored output
pip install -r requirements.txt

python app.py [file_path1] [file_path2]

# e.g.
# python app.py original.txt changed.txt
```