Skip to main content

diff

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'

Metadata

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 Provenance Actions
diff-2023.12.6.tar.gz 7.8 kB Without provenance Details for diff-2023.12.6.tar.gz

Built distribution (wheel)

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

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

Security for diff 2023.12.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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