Skip to content

Instantly share code, notes, and snippets.

@snejus
snejus / deps
Last active Apr 16, 2022
See python package's direct and reverse dependencies, and version changes between revisions in milliseconds
View deps
#!/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 Jun 3, 2022
Find and print the changelog of a python package
View changelog
#!/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