Skip to main content

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 of Vec<LinePartsDiff> to Vec<LinePartsDiff>.
  • Add console output with colours.
  • Add pytest plugin magic that plays with rich.
  • Write some docs.

Project details


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

ocdiff-0.0.18-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (288.1 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

ocdiff-0.0.18-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl (311.2 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ i686 manylinux: glibc 2.5+ i686

ocdiff-0.0.18-cp311-cp311-macosx_11_0_arm64.whl (224.3 kB view hashes)

Uploaded CPython 3.11 macOS 11.0+ ARM64

ocdiff-0.0.18-cp311-cp311-macosx_10_12_x86_64.whl (231.7 kB view hashes)

Uploaded CPython 3.11 macOS 10.12+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page