{"categories":[{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/3"}],"enrichment":{"capability":"Generates unified diffs with correct handling of files without trailing newlines, and optionally applies patches or displays colored diff output.","skillfed_tags":["diff-tools","patch-application"],"use_cases":["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"],"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\u2014a 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.\n\nThe 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.","worth_installing":"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."},"id":"moreorless","links":{"html":"https://skillfed.io/packages/moreorless","md":"https://skillfed.io/packages/moreorless.md","pypi":"https://pypi.org/project/moreorless/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-05-12","license_spdx":null,"license_treatment":"permissive","name":"moreorless","python_support":"supports_current","summary":"Python diff wrapper"},"popularity":{"monthly_downloads":3459933,"position":2615,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.6.0"}
