Skip to main content

PyPI version Supported Python versions Build status pre-commit.ci status

diff defines a difference protocol. Watch:

>>> class LonelyObject:
...     def __diff__(self, other):
...         return f"{self} is not like {other}"
...
...     def __repr__(self):
...         return "<LonelyObject>"

>>> from diff import diff
>>> diff(LonelyObject(), 12).explain()
'<LonelyObject> is not like 12'

Release files for diff 2023.12.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for diff 2023.12.6
File Size Uploaded
diff-2023.12.6.tar.gz 7.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for diff 2023.12.6
File Interpreter ABI Platform
diff-2023.12.6-py3-none-any.whl Python 3 none any Details

Total release size: 13.7 kB

Release files / diff-2023.12.6.tar.gz

Download URL diff-2023.12.6.tar.gz
Size 7.8 kB
Tags Source
SHA-256 checksum
How to use checksums
44d7370ad713f71dcab625189e0a0eec3027da8706f9ce885f55d5760351dd5d
BLAKE2b-256 checksum
How to use checksums
a74266c5589a8489c306a8ccb7b52ee113dfb6cc4eb7075cc2dccb1a883a9b58
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.7

Release files / diff-2023.12.6-py3-none-any.whl

Download URL diff-2023.12.6-py3-none-any.whl
Size 5.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7e61b2dbb25e6f509715b6f31c9d0bf059203f1c8e28aa758bc252f56754dd3d
BLAKE2b-256 checksum
How to use checksums
60c62dac6e692cfaee7a133f7b40d6e09681360f95938c25904c370d2b17c1e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.7

Release history Release notifications | RSS feed

This release

2023.12.6 This release

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.1

2 release files

0.2.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page