Skip to main content

Python diff wrapper

Project description

morelorless

This is a thin wrapper around difflib.unified_diff that Does The Right Thing for "No newline at eof". The args are also simplified compared to difflib:

moreorless.unified_diff(
    astr: str,
    bstr: str,
    filename: str,
    n: int = 3,
) -> str

License

morelorless is copyright Tim Hatch, and licensed under the MIT license. I am providing code in this repository to you under an open source license. This is my personal repository; the license you receive to my code is from me and not from my employer. See the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

moreorless-0.1.0.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

moreorless-0.1.0-py2.py3-none-any.whl (4.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file moreorless-0.1.0.tar.gz.

File metadata

  • Download URL: moreorless-0.1.0.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.0

File hashes

Hashes for moreorless-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c8fc50bdec2f26341a02572b474fce2db2e483fdefa648633cf7b4da7089ce9d
MD5 3e479cb197c5529a71f7e88f7fa6bbd2
BLAKE2b-256 5c0733fe434689d9c328910de68aa52bd6fcc46e7363138c7757b5a75a0daccd

See more details on using hashes here.

File details

Details for the file moreorless-0.1.0-py2.py3-none-any.whl.

File metadata

  • Download URL: moreorless-0.1.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.0

File hashes

Hashes for moreorless-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 3066e60e0d767e7710713d618c86bb17133fd537e1a2a2630fac1f311cf53617
MD5 7b27487f0a12ecf7400774f9e7b411e4
BLAKE2b-256 a1fb747a5e004a23fa26caf6a4dff1f7de25ea281be1529b38efaebf9f8e1b26

See more details on using hashes here.

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