Skip to main content

Do you have textual (or binary) data that you need to patch?

` >>> a = 'you say yes, i say no' >>> b = 'you say stop, and i say go go go' `

But you want a smaller patchfile than what difflib’s unified_diff() creates?

` >>> diff = '\n'.join(difflib.unified_diff(a, b)) >>> len(diff) 137 `

mini_patch also uses difflib’s SequenceMatcher machinery, but it creates tiny, ASCII-encoded patches:

` >>> patch = mini_patch.make_mini_patch(a.encode('utf-8'), b.encode('utf-8')) >>> patch '0!d:8,2;i:11,$4$dG9w;i:12,$8$IGFuZA==;r:19,1,$4$Zw==;i:21,$8$IGdvIGdv;' >>> len(patch) 70 `

Metadata

Release files for mini-patch 1.0.0

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

Source distribution (sdist)

Source distribution for mini-patch 1.0.0
File Size Uploaded Provenance
mini_patch-1.0.0.tar.gz 2.6 kB Without provenance Details

Built distributions (wheels)

Table of built distributions (wheels) for mini-patch 1.0.0
File Interpreter ABI Platform
mini_patch-1.0.0-py3-none-any.whl Python 3 none any Details
mini_patch-1.0.0-py2-none-any.whl Python 2 none any Details

Total release size: 9.6 kB

Release files / mini_patch-1.0.0.tar.gz

Download URL mini_patch-1.0.0.tar.gz
Size 2.6 kB
Tags Source
SHA-256 checksum
How to use checksums
2ddd94c577fe379a937686c6713762324bcaed4de9dd1efe204d72e38b854d8b
BLAKE2b-256 checksum
How to use checksums
4ecb798a667b55b055472e6673bc7c777113dda29d108c35650140803181d553
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.9.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.4.2

Release files / mini_patch-1.0.0-py3-none-any.whl

Download URL mini_patch-1.0.0-py3-none-any.whl
Size 3.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6a07adbe00621867fbee7f8cf01e2a0adbfafce3641c751064537c011882edee
BLAKE2b-256 checksum
How to use checksums
fe91b0fbefeec4a3763d6a549aa644c51aaccc91dba9f5c1cfcff9fde1fda862
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.9.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.4.2

Release files / mini_patch-1.0.0-py2-none-any.whl

Download URL mini_patch-1.0.0-py2-none-any.whl
Size 4.0 kB
Tags Python 2
SHA-256 checksum
How to use checksums
99b3cfe6e8db42b25495ac73b00268f00e8376dacada35f9e0f1b4a4d68945be
BLAKE2b-256 checksum
How to use checksums
d4f2a6fe1566fcdbbee9cecdd7d2efe838517e50be111048da40d2d92b3c520d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.9.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.4.2

Security for mini-patch 1.0.0

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