$npx skillfedfor your agent

moreorless

Python diff wrapper

Worth itPyPI UtilitiesReleased May 20263.5M downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — moreorless-0.6.0-py3-none-any.whl
v0.6.0 · released 2026-05-12 · Python >=3.9

Yes. The package solves a real edge case (newline-at-eof handling) that the standard library doesn't address cleanly, has zero base dependencies, is actively maintained, carries no known vulnerabilities, and uses a permissive MIT license. Install the base package for diff generation; add the `[cli]` extra only if you need colored terminal output.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.9 or later.
  • Optional `cli` extra (click dependency) needed for colored output functions.
  • Low install friction with no runtime dependencies.

License · maintenance · safety

MIT (permissive) — MIT license permits unrestricted use, modification, and distribution in both open-source and proprietary projects.

last release 2026-05-12 (94 days) · last repo commit 2026-05-12 · 6 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 3,459,933 downloads/mo, #2,615 on PyPI

Verify before relying

pip install moreorless

import moreorless
diff_output = moreorless.unified_diff('old content', 'new content', 'file.txt')
print(diff_output)
  • Whether the package is actively used in production or primarily for development tooling
  • Performance characteristics when diffing large files or applying complex patches
Same gist for agents: .md · .json

What it is and what it does

moreorless is a thin wrapper around Python's standard `difflib.unified_diff` that simplifies the API and correctly handles the edge case of files without trailing newlines—a common source of bugs in diff tools. It provides three main entry points: a core `unified_diff()` function that takes two strings and returns a unified diff, a `patch.apply_single_file()` function to apply patches to file contents, and optional colored output helpers via the `cli` extra that use click to display diffs with syntax highlighting.

The package is lightweight with zero runtime dependencies in its base form, making it suitable for embedding in other tools or libraries that need reliable diff generation. It follows semantic versioning and is compatible with Python 3.9 and later. The colored output and patch-application features are available as optional add-ons, so you can install just the core diffing functionality if you don't need click-based terminal output.

Use it for

  • Generate clean unified diffs in code review or testing tools that need correct newline-at-eof handling
  • Apply patches programmatically to file contents with optional offset tolerance for resilience
  • Display side-by-side or colored diffs in CLI tools using the click integration
  • Merge diffs from multiple sources using the combined_diff function for complex version control scenarios

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

The package solves a real edge case (newline-at-eof handling) that the standard library doesn't address cleanly, has zero base dependencies, is actively maintained, carries no known vulnerabilities, and uses a permissive MIT license. Install the base package for diff generation; add the `[cli]` extra only if you need colored terminal output.

Install

moreorless on PyPI

Before you install

Low install friction with no runtime dependencies. Actively maintained as of May 2026, with a recent release.

Requires Python 3.9 or later. Optional `cli` extra (click dependency) needed for colored output functions.

License in practice

MIT license permits unrestricted use, modification, and distribution in both open-source and proprietary projects.

Quickstart

pip install moreorless

import moreorless
diff_output = moreorless.unified_diff('old content', 'new content', 'file.txt')
print(diff_output)

Verify before relying

  • Whether the package is actively used in production or primarily for development tooling
  • Performance characteristics when diffing large files or applying complex patches

Package facts

LicenseMIT permissive
Python supportSupports the current Python release >=3.9
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceActively maintained 94 days since the last release
Last repo commit
First released
Downloads3,459,933 / month, #2,615 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14

Evidence: moreorless-0.6.0-py3-none-any.whl

Tags

Capabilities
unified diff wrapperpatch applicationcolored diff outputno newline at eofdifflib wrappergenerate unified diffsapply patch to file
Topics
diff-toolspatch-application

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “unified diff wrapper”

  • moreorlessGenerates unified diffs with correct handling of files without…
  • unidiff2Parses unified diff format into structured Python objects…
  • unidiffParses unified diff format data into structured Python objects,…

Give your agent the search over MCP, or paste the wish link into any chat.

More Utilities packages

idna Worth it
PyPI · Python Modules · released Jun 2026

Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.

Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
charset-normalizer Worth it
PyPI · Utilities · released Aug 2026

Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.

permissive licensepure Python · 3.7+
1.7Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.

MITpure Python · 3.10+
1.6Bdownloads / mo
pluggy Worth it
PyPI · Libraries · released May 2025

Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.

Install it if you're building an extensible application or framework.

MITpure Python · 3.9+aging
1.3Bdownloads / mo
Pygments Worth it
PyPI · Utilities · released Mar 2026

Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.

Install it if you need to display or transform source code.

BSD-2-Clausepure Python · 3.9+
1.3Bdownloads / mo
six With conditions
PyPI · Libraries · released Dec 2024

Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.

MITpure Python
1.2Bdownloads / mo

See also patch · ydiff · patch-ng · unidiff · unidiff2 · patchy · diff-match-patch · fast-diff-match-patch · icdiff · whatthepatch