Get the version number of the module from pypi:
>>> import requests>>> r = requests.get("https://pypi.python.org/pypi/HinetPy/json")>>> r.json()['info']['version']'0.3.3'Get bibtex or json based on doi:
#!/usr/bin/env python# source: https://gist.github.com/jrsmith3/5513926import requestsurl = "https://doi.org/10.1038/nature07109"headers = {"accept": "application/x-bibtex"}r = requests.get(url, headers=headers)print(r.text)headers = {"accept": "application/json"}r = requests.get(url, headers=headers)print(r.json())