Skip to main content

A very simple python package for creating a HTML line diff between two files.

Project description

diffa

A simple CLI tool for generating nice HTML diffs between two files.

🌟 Features

  • Generates pretty colour-coded HTML diffs.
  • Supports both unified view and side-by-side view.

📦 Installation

Use pip to install diffa from PyPI:

pip install diffa

🛠️ Usage

Run diffa from the command line to create a shiny HTML diff.

diffa file1.txt file2.txt output.html

Options

--side-by-side: Adds a side-by-side comparison to the output.

The Output

Open the generated HTML file in your browser to see:

  • Lines added in green
  • Lines removed in red
  • Matching lines in white

💡 Ideas for Use

  • Code Reviews: Quickly generate diffs for commits or branches.
  • Document Comparison: Spot the differences between document revisions.
  • Configuration Changes: Compare config files across environments.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

diffa-0.0.4.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

diffa-0.0.4-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file diffa-0.0.4.tar.gz.

File metadata

  • Download URL: diffa-0.0.4.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for diffa-0.0.4.tar.gz
Algorithm Hash digest
SHA256 2911f9b6912ffeefe8ecc464087f54ab1974022306faa47f43d956c3a53f9c02
MD5 6037bdb1fea822d100eebb32b33dce77
BLAKE2b-256 342d93714abb43da54350036ca394075e6a14ad61bfcd72b29594635b7865e5d

See more details on using hashes here.

File details

Details for the file diffa-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: diffa-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for diffa-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 aececd457a6bd41e218b4d7573eba8a50d024707dba7294891cfd55e51a87950
MD5 5bef42138100b1839dceb95df42674e6
BLAKE2b-256 1a269d096cddd423e4e0ed6ffacbcac1aec1b68141dcf09f1befe8337289f4ca

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page