difftastic Python wrapper
Project description
ocdiff
Fast diff library for Python - wraps similar.
Usage
pip install ocdiff
ocdiff.html_diff(
a,
b,
context_lines=5,
# This isn't respected yet
column_limit=80,
)
Install/Develop
uv pip install -e '.[dev]'
maturin develop
Make release
- Add pypi token and user =
__token__
to settings (do this once). - Upversion
pyproject.toml
.
git tag -a v0.0.x head -m v0.0.x
git push origin v0.0.x
TODO
- Implement
column_limit
- should just be a function ofVec<LinePartsDiff>
toVec<LinePartsDiff>
. - Add console output with colours.
- Add pytest plugin magic that plays with
rich
. - Write some docs.
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distributions
Close
Hashes for ocdiff-0.0.19-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f68e7fd939706d6c9a0c6cc4f4e2fce33f432e8bbfc9c30fae24c85bd36eb97a |
|
MD5 | b1e6265553c23856e3178e5912921702 |
|
BLAKE2b-256 | 83cd870e4d116265e24df0687ff2912adbe2955175a58850c4e0fe9665a1ad2f |
Close
Hashes for ocdiff-0.0.19-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 80fb6733bdf15f795886e3a91d0f827cf4a760395add6ac50470cd5610ffc9fd |
|
MD5 | 80858c9eb21a5ac11a7a8e931bc8a9f2 |
|
BLAKE2b-256 | aa3d8c48623282f01211d699431da101ca1d58dd10f27c7783f430d84b2af1ce |
Close
Hashes for ocdiff-0.0.19-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f22a3a6969df3b8a22bd0fbaeda4d458ac84f912f566db4163b666daee83be0 |
|
MD5 | 41ea382985c69d04444f3a598489ca1b |
|
BLAKE2b-256 | e58627b83cdff4be34534e90e610c1e73de40b7145bd70f56ad30b3c75d4980b |
Close
Hashes for ocdiff-0.0.19-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 021b5af2ac78ea39371aa622442c5f25b193421cb53b7757155a59651050666e |
|
MD5 | 31c94e8074b8fe7e7e211cd146605847 |
|
BLAKE2b-256 | e1e0642738971da719ea276db06ad4e1d127a0d3d151507a491fd0dc0afcf26c |