Metadata-Version: 2.4
Name: larzdiff
Version: 0.1.0
Summary: Human-readable diffs of two values - dicts, lists, strings, zero third-party deps
Author: larz-scripter
License: MIT
Project-URL: Homepage, https://github.com/larz-scripter/larzdiff
Project-URL: Repository, https://github.com/larz-scripter/larzdiff
Project-URL: Issues, https://github.com/larz-scripter/larzdiff/issues
Keywords: diff,testing,debugging,comparison,education,learn-to-code,quality,zero-dependency,pure-python
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# larzdiff

**Human-readable diffs of two values — see exactly what changed.**

When a test fails or two things should match but don't, you need to see the
difference at a glance, not squint at two big blobs. larzdiff compares two values
— strings, lists, dicts, or scalars — and describes exactly what changed: which
keys, which lines, which items. Perfect for test failure messages and debugging.
Zero third-party dependencies.

## Install

```bash
pip install larzdiff
```

## Use

```python
from larzdiff import diff

print(diff({"a": 1, "b": 2}, {"a": 1, "b": 3}))   # ~ 'b': 2 -> 3
print(diff([1, 2, 3], [1, 9, 3]))                 # ~ [1] 2 -> 9
print(diff("line one\nline two", "line one\nline 2"))
```

## Learn to code with Larz

Part of the **learn-to-code toolkit** in the [Larz stack](https://github.com/larz-scripter) —
see the [Learn to Code platform](https://larzos.com/learn/). Pairs with
[larztest](https://github.com/larz-scripter/larztest).

## Tests

```bash
python -m unittest discover -s tests -v   # 7 tests
```

## License

MIT (c) larz-scripter
