Skip to content
rafal-onePublic

About

Human-readable summary of dependency changes between lockfiles or git revisions (uv.lock, poetry.lock, Pipfile.lock, requirements.txt, package-lock.json)

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

lockdiff

Reviewing a PR that touches uv.lock or poetry.lock means scrolling thousands of lines. lockdiff tells you in a few lines what actually changed: packages added, removed, upgraded (with major/minor/patch) and downgraded. Stdlib only, Python 3.9+.

$ lockdiff --git main uv.lock          # working tree vs. branch main
$ lockdiff old/poetry.lock new/poetry.lock -f markdown   # paste into a PR comment
$ lockdiff --git HEAD~1 requirements.txt --exit-code      # exit 1 in CI if deps changed
Upgraded (2)
  requests 2.30.0 -> 2.31.1 [minor]
  urllib3 1.26.0 -> 2.0.0 [major]
Added (1)
  fresh 0.3

Supported: uv.lock, poetry.lock (any [[package]] TOML lock), Pipfile.lock, pinned requirements.txt (name==version), npm package-lock.json. Options: --git REV, -f text|markdown|json, --exit-code. Exit code 2 on unreadable files or bad arguments.

Install

pip install lockdiff or copy lockdiff.py.

Support

MIT licensed. If it saves you time: https://paypal.me/RafalBaranowski

About

Human-readable summary of dependency changes between lockfiles or git revisions (uv.lock, poetry.lock, Pipfile.lock, requirements.txt, package-lock.json)

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages