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).
Metadata
Release files for chardif 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| chardif-0.1.3.tar.gz | 20.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| chardif-0.1.3-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 25.2 kB
Release files / chardif-0.1.3.tar.gz
| Download URL | chardif-0.1.3.tar.gz |
|---|---|
| Size | 20.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9bd5a6c27258c973fff1115a69a3ddd22bf85030c27c92243be145f214e11da4
|
|
BLAKE2b-256 checksum How to use checksums |
37ae97b008a95e59038a2951dc5ca71711444633c45bea6f74084a934d7b23f0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.5
|
Release files / chardif-0.1.3-py2.py3-none-any.whl
| Download URL | chardif-0.1.3-py2.py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
2a64e0af97b6de7244dd177a312270b1eb1b2cd376210d5f70dad97476522188
|
|
BLAKE2b-256 checksum How to use checksums |
af7582d09195dcd5377bb5dcd94765f05004a0c170570622e9c3eb500729462e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.5
|