Skip to main content

KVDiff

Compare two text files by key columns

Getting Started

Let's say we have two text files maintaining a list of systems with versions.

$ cat a.txt
MacOS 10.12
Windows 10
Ubuntu 16
$ cat b.txt
MacOS 10.14
Windows 10
Manjaro 17

To see which systems are new in b.txt, deleted in b.txt, and version changed in b.txt, run kvdiff -k1 a.txt b.txt in the terminal:

$ kvdiff -k1 a.txt b.txt
* MacOS 10.12
> MacOS 10.14
+ Manjaro 17
- Ubuntu 16

KVDiff reports that MacOS has a version change, new system Manjaro with version 17 is added, and Ubuntu is deleted.

Requirements

Installation

$ pip install kvdiff

Usage

Run kvdiff --help for more infomation

License

MIT licensed

How It Works

KVDiff: Compare Two Large Text Files by Key Columns

Release files for kvdiff 0.2.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for kvdiff 0.2.5
File Interpreter ABI Platform
kvdiff-0.2.5-py3-none-any.whl Python 3 none any Details

Release files / kvdiff-0.2.5-py3-none-any.whl

Download URL kvdiff-0.2.5-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7c276069e9df9ce255818d83f3fec4b8f7fc3f9f026f476bc0447e9f4dcc9f2f
BLAKE2b-256 checksum
How to use checksums
34304ecccd1e643a9a5549bafe9a6ba190ed0b1eb274485f6bb23fd800a8fd22
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.19.1 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.4

Release history Release notifications | RSS feed

This release

0.2.5 This release

1 release file

0.2.4

1 release file

0.2.3

1 release file

0.2.2

1 release file

0.2.1

1 release file

0.2.0

1 release file

0.1.1

1 release file

0.1.0

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

0.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page