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
- Host: GitHub
- URL: https://github.com/blurfx/diff-imitation
- Owner: blurfx
- Created: 2020-09-25T13:44:23.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-09-25T13:54:01.000Z (over 5 years ago)
- Last Synced: 2025-01-22T11:25:59.312Z (over 1 year ago)
- Topics: diff, unix
- Language: Python
- Homepage:
- Size: 12.7 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```