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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file diffa-0.0.3.tar.gz.
File metadata
- Download URL: diffa-0.0.3.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8f2b9f91f8a4fe625d5833944c2f949e51c4ca860c2639923ad2bd880023ce79
|
|
| MD5 |
80a84e17f2ae8e6af473d76308b8cec1
|
|
| BLAKE2b-256 |
c3b33d44e07507a3faf6a1001df659d0b74ad73640a2a986ccf6c25220cb270d
|
File details
Details for the file diffa-0.0.3-py3-none-any.whl.
File metadata
- Download URL: diffa-0.0.3-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c3e67fe94104e13ed04f71b27eeaa017032755b74f9a3a34df32c318446d6628
|
|
| MD5 |
cecb27f0674429aa1c114842da69c883
|
|
| BLAKE2b-256 |
f645512c0f2c1324ac1a530c0a21f116705481df2911ab4fa109ade711a014e1
|