{"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,"search_vec":"'1.5':34 '3.3':37 'auto':30 'auto-pag':29 'base':5 'color':9,48 'compar':17 'current':32 'diff':11,41 'either':12 'file':19 'increment':10,43 'infrequ':40 'mode':27 'page':31 'python':36 'releas':38 'requir':35 'side':22,24,45,47 'side-by-sid':21,44 'stdin':14 'support':20 'termin':4,42 'terminal-bas':3 'tool':6 'two':18 'unifi':26 'version':33 'view':8 'ydiff':1","created_at":"2026-05-01T17:46:53.723473+00:00","updated_at":"2026-05-01T17:46:53.723473+00:00","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,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"ydiff","cli_version":"ydiff 1.5","type":"library","homepage":null,"github":"https://github.com/ymattw/ydiff","docs":null,"changelog":null,"pypi":"https://pypi.org/project/ydiff/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":[],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-05-01","next_check":"2026-07-30","install_tag":null}}