Skip to content

Print per-character string diffs to terminal w/ Python.

License

Notifications You must be signed in to change notification settings

shaypal5/chardif

Repository files navigation

chardif

PyPI-Status PyPI-Versions Build-Status Codefactor code quality LICENCE

Print per-character string diffs to terminal w/ Python.

Done using wasabi, and based on a gist by ines (which is also the writer of wasabi). And in "based" I mean it's just that gist in a package form.

https://raw.githubusercontent.com/shaypal5/chardif/master/chardif_example.png?sanitize=true

Install chardif with:

pip install chardif

Just a single function, folks:

from chardif import chardif
import datetime

chardif("rabbits", "grab it")

Package author and current maintainer is Shay Palachy (shay.palachy@gmail.com); You are more than welcome to approach him for help. Contributions are very welcomed.

Clone:

git clone git@github.com:shaypal5/chardif.git

Install in development mode with test dependencies:

cd chardif
pip install -e ".[test]"

To run the tests, call the pytest command in the repository's root, or:

python -m pytest

This project is documented using the numpy docstring conventions, which were chosen as they are perhaps the most widely-spread conventions that are both supported by common tools such as Sphinx and result in human-readable docstrings (in my personal opinion, of course). When documenting code you add to this project, please follow these conventions.

Done using wasabi, and based on a gist by ines (which is also the writer of wasabi). And in "based" I mean it's just that gist in a package form.

Created by Shay Palachy (shay.palachy@gmail.com).

About

Print per-character string diffs to terminal w/ Python.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages