Skip to content

Instantly share code, notes, and snippets.

@snejus
snejus / deps
Last active December 24, 2023 11:09
See python package's direct and reverse dependencies, and version changes between revisions in milliseconds
#!/bin/bash
# Read poetry.lock and display information about dependencies:
#
# * Project dependencies
# * Sub-dependencies and reverse dependencies of packages
# * Summary of updates, or change in dependency versions between two revisions of the project
#
# Author: Sarunas Nejus, 2021
# License: MIT
@snejus
snejus / changelog
Last active June 3, 2022 02:54
Find and print the changelog of a python package
#!/usr/bin/env bash
# Try finding the changelog of a Python package and render it with glow (markdown) or
# pygments (md and rst), if they are installed.
#
# Tested with bash and zsh. It isn't POSIX-compatible however.
#
# ### clone the gist
# $ chmod a+x changelog
# $ ln -is `realpath changelog` ~/.local/bin/changelog