{"id":27559,"library":"ydiff","title":"ydiff","description":"A terminal-based tool for viewing colored, incremental diffs either from stdin or by comparing two files, supporting side-by-side and unified modes with auto-paging. Current version 1.5, requires Python >=3.3. Releases are infrequent.","status":"active","version":"1.5","language":"python","source_language":"en","source_url":"https://github.com/ymattw/ydiff","tags":["diff","terminal","incremental","side-by-side","colored"],"install":[{"cmd":"pip install ydiff","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[],"quickstart":{"code":"import subprocess\nimport sys\n\n# ydiff is a command-line tool, not typically imported as a library.\n# To use it from Python, call it as a subprocess.\nresult = subprocess.run(['ydiff', '--version'], capture_output=True, text=True)\nprint(result.stdout.strip())\n","lang":"python","description":"ydiff is not designed as an importable Python module; it is meant to be run from the command line. Use subprocess to invoke it from Python."},"warnings":[{"fix":"Use subprocess to run ydiff as an external command.","message":"ydiff is primarily a CLI tool and not intended to be imported as a Python module. Importing 'ydiff' directly may not work or may have unexpected behavior.","severity":"gotcha","affected_versions":"all"},{"fix":"Use the modern flags: 'ydiff -m' or 'ydiff --side-by-side'.","message":"The old command-line flags from earlier versions (e.g., 'ydiff -s' for side-by-side) may be deprecated. Always check the current help with 'ydiff --help'.","severity":"deprecated","affected_versions":"<1.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Use subprocess to run ydiff: subprocess.run(['ydiff', ...])","cause":"Attempting to import ydiff as a Python module instead of using it as a CLI tool.","error":"ModuleNotFoundError: No module named 'ydiff'"},{"fix":"Run 'ydiff --help' to see current valid options.","cause":"Using deprecated or incorrect command-line flag.","error":"ydiff: error: unrecognized arguments: -s"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}