Print per-character string diffs to terminal w/ Python
Project description
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.
Installation
Install chardif with:
pip install chardif
Use
Just a single function, folks:
from chardif import chardif
import datetime
chardif("rabbits", "grab it")
Contributing
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.
Installing for development
Clone:
git clone git@github.com:shaypal5/chardif.git
Install in development mode with test dependencies:
cd chardif
pip install -e ".[test]"
Running the tests
To run the tests, call the pytest command in the repository’s root, or:
python -m pytest
Adding documentation
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.
Credits
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).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for chardif-0.1.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a64e0af97b6de7244dd177a312270b1eb1b2cd376210d5f70dad97476522188 |
|
MD5 | cd69e0566759f6b1755514e6595f207f |
|
BLAKE2b-256 | af7582d09195dcd5377bb5dcd94765f05004a0c170570622e9c3eb500729462e |