Metadata-Version: 2.1
Name: moreorless
Version: 0.3.0
Summary: difflib with simpler arguments, and enhanced \n EOF support
Home-page: https://github.com/thatch/moreorless
Author: Tim Hatch
Author-email: tim@timhatch.com
License: MIT
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
        
        # raises moreorless.patch.PatchException
        moreorless.patch.apply_single_file(
            contents: str,
            patch: str,
            allow_offsets: bool = True,
        ) -> str
        
        # uses click to write to stdout with colors
        moreorless.click.echo_color_unified_diff(
            astr: str,
            bstr: str,
            filename: str,
            n: int = 3
        ) -> None
        ```
        
        # License
        
        morelorless is copyright [Tim Hatch](http://timhatch.com/), 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.
        
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.6
Description-Content-Type: text/markdown
