$ ./pypi-check scipy
scipy 1.2.0
Last active
January 23, 2019 16:18
-
-
Save loisaidasam/2cb9bcc32312ca673c933ef07cdc706f to your computer and use it in GitHub Desktop.
Check the current version of a lib on pypi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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{}") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment