Skip to main content

diffs

GitHub version PyPI version

diffs monitors for any changes in arbitrary shell command output between the initial state and the current output.

Installation

pip3 install diffs

Python 3.6 (or newer) is required.

Usage

diffs CMD

The initial CMD output is stored at the beginning. Then the command is run again periodically and the output is compared against the initial output. If there are differences, they are shown in the standard diff format. The unchaged lines are not shown.

Examples

Show how many packets have been sent since the script has been started:
diffs ifconfig wlp2s0
diffs demo ifconfig

Find new applications opening network ports (shows only changes between the initial state):
diffs sudo netstat -tulpn
diffs demo netstat

Monitor changes in a file:

$ diffs cat /etc/resolv.conf

Difference between starting date and the current date:
diffs date
diffs demo date

Finding newly spawned processes:
diffs ps a -o pid,cmd
diffs demo ps

Metadata

Release files for diffs 0.2.0

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

Source distribution (sdist)

Source distribution for diffs 0.2.0
File Size Uploaded
diffs-0.2.0.tar.gz 4.1 kB Details

Built distribution (wheel)

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

Total release size: 8.9 kB

Release files / diffs-0.2.0.tar.gz

Download URL diffs-0.2.0.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
ce1513ff88d061d02eb65273158285975ebed57ebb7f329a3cb727625620438e
BLAKE2b-256 checksum
How to use checksums
5f17327147e74c5fd0dd2db246e6ea2abf33985a5b603a1b9fe563c12fa8946d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.3

Release files / diffs-0.2.0-py3-none-any.whl

Download URL diffs-0.2.0-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
111000faecec3c791f42210f3bb34c96e2eabd9398b5c90d9db289d8ab79e807
BLAKE2b-256 checksum
How to use checksums
76051c40d9ca602c6a77d0e3461d959d940587c9f970335b797b301c23a5d551
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.3

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

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