Skip to content

Instantly share code, notes, and snippets.

@loisaidasam loisaidasam/pipy-check
Last active Jan 23, 2019

Embed
What would you like to do?
Check the current version of a lib on pypi
#!/bin/bash
###
# Check the current version of a lib on pypi
#
# https://gist.github.com/loisaidasam/2cb9bcc32312ca673c933ef07cdc706f
#
# Requires `curl` and [pup](https://github.com/ericchiang/pup)
###
lib="$1"
if [ -z $lib ]
then
echo "Usage: pypi-check <lib>";
exit 1;
fi
lib_url="https://pypi.org/project/$lib/"
echo $(curl -Ss "$lib_url" | pup --plain ".package-header__name text{}")
$ ./pypi-check scipy
scipy 1.2.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.