$npx skillfedfor your agent

ydiff

View colored, incremental diff in a workspace or from stdin, in side-by-side or unified moded, and auto paged.

Worth itPyPI UtilitiesReleased Dec 202597.6K downloads / moBSD-3Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — ydiff-1.5-py3-none-any.whl
v1.5 · released 2025-12-06 · Python >=3.3

Yes. Ydiff is a lightweight, actively maintained tool with no external dependencies, permissive licensing, and a clear use case for developers who want colored, formatted diffs in the terminal. Install it if you regularly review diffs and prefer a simpler alternative to full-featured diff tools.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires less as a pager (or another pager specified via -p flag); Python >= 3.3.
  • Installation is straightforward with low friction—the package is a pure Python wheel with no runtime dependencies, only requiring Python >= 3.3 and less as a pager.
  • The project is actively maintained with a recent release and 930 repository stars.

License · maintenance · safety

BSD-3 (permissive) — Ydiff is licensed under BSD-3 (permissive), so you can use, modify, and distribute it freely in both open-source and commercial projects with minimal restrictions.

last release 2025-12-06 (251 days) · last repo commit 2026-05-20 · 930 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 97,643 downloads/mo, #13,138 on PyPI

Verify before relying

pip install ydiff

# View colored diff in a git workspace
cd your-project
ydiff

# Or pipe a diff directly
git diff | ydiff
  • Whether wide-character alignment issues in side-by-side mode affect common use cases or only edge cases.
  • Performance characteristics when viewing very large diffs or log histories.
Same gist for agents: .md · .json

What it is and what it does

Ydiff is a terminal-based diff viewer that renders diffs with color and formatting, supporting both side-by-side (similar to diff -y) and unified modes. It integrates with version control systems (Git, Mercurial, Perforce, Svn) to display workspace changes, commit logs, or arbitrary diffs piped from stdin. The tool auto-detects terminal width, wraps or truncates lines as configured, and pages output through less or another pager of your choice.

The package requires only Python built-in libraries and less, making it lightweight and portable. It supports customized color themes via INI configuration files and respects environment variables for default options. Ydiff is designed for developers who want a quick, colored alternative to standard diff output without installing heavy dependencies.

Use it for

  • Review git diffs with color and side-by-side formatting before committing changes.
  • Examine commit history with inline changes using ydiff -l in a version-controlled workspace.
  • Pipe arbitrary diffs (from git show, svn diff, or patch files) into ydiff for colored viewing.
  • Compare two files or directories with unified or side-by-side output and custom text width.
  • Inspect GitHub pull request diffs by piping curl output directly to ydiff.
  • Redirect colored diff output to a patch file while preserving formatting.

Worth the install?

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

Worth it

Yes.

Ydiff is a lightweight, actively maintained tool with no external dependencies, permissive licensing, and a clear use case for developers who want colored, formatted diffs in the terminal. Install it if you regularly review diffs and prefer a simpler alternative to full-featured diff tools.

Install

ydiff on PyPI

Before you install

Installation is straightforward with low friction—the package is a pure Python wheel with no runtime dependencies, only requiring Python >= 3.3 and less as a pager. The project is actively maintained with a recent release and 930 repository stars.

Requires less as a pager (or another pager specified via -p flag); Python >= 3.3.

License in practice

Ydiff is licensed under BSD-3 (permissive), so you can use, modify, and distribute it freely in both open-source and commercial projects with minimal restrictions.

Quickstart

pip install ydiff

# View colored diff in a git workspace
cd your-project
ydiff

# Or pipe a diff directly
git diff | ydiff

Verify before relying

  • Whether wide-character alignment issues in side-by-side mode affect common use cases or only edge cases.
  • Performance characteristics when viewing very large diffs or log histories.

Package facts

LicenseBSD-3 permissive
Python supportSupports the current Python release >=3.3
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceActively maintained 251 days since the last release
Last repo commit
First released
Downloads97,643 / month, #13,138 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableEnvironment :: ConsoleIntended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseOperating System :: MacOS :: MacOS XOperating System :: POSIXOperating System :: UnixProgramming Language :: PythonProgramming Language :: Python :: 3Topic :: Utilities

Evidence: ydiff-1.5-py3-none-any.whl

Tags

Capabilities
colored diff viewer terminalside-by-side diff displayincremental diff toolgit diff colorizerunified diff formatterterminal diff pagersyntax-highlighted diffs
Topics
diff-viewerterminal-uivcs-integration
PyPI keywords
coloredincrementalside-by-sidediff

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 › “colored diff viewer terminal”

  • ydiffYdiff displays colored, incremental diffs in a terminal with…
  • icdiffIcdiff displays file differences in a side-by-side colored format,…
  • moreorlessGenerates unified diffs with correct handling of files without…

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 icdiff · moreorless · autopage · pytest-clarity · pytest-icdiff · yapf · redlines · datadiff · pastel · mypy_baseline