pypi see older versions of package [duplicate] pypi see older versions of package [duplicate] python python

pypi see older versions of package [duplicate]


It's perhaps a little inelegant, but it appears that you can go to the URL

https://pypi.python.org/simple/<package>

And you will get a bunch of links to tarballs for the package.

Ex:

https://pypi.python.org/simple/django-filebrowser-no-grappelli/


This is visible in the new UI for pypi:

https://pypi.org/project/<package>/#history

For example:

https://pypi.org/project/django-filebrowser-no-grappelli/#history


You can use this short Python 3 script to grab the list of available versions for a package from PyPI using JSON API:

#!/usr/bin/env python3import sys    import requestsfrom pkg_resources import parse_version    def versions(pkg_name):    url = f'https://pypi.python.org/pypi/{pkg_name}/json'    releases = requests.get(url).json()['releases']    return sorted(releases, key=parse_version, reverse=True)    if __name__ == '__main__':    print(*versions(sys.argv[1]), sep='\n')

Demo:

$ python versions.py django-filebrowser-no-grappelli3.7.83.7.73.7.63.7.53.7.43.7.33.7.23.7.13.7.03.6.23.6.13.5.83.5.73.5.63.1.1