Pypi see old versions of the package

This is the package that interests me:

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

However, the latest version no longer supports Django 1.3. I need to find a version that does. How to view a list of older versions?

+65
python django pypi
Aug 03 '14 at 11:21
source share
6 answers

This may be a little inelegant, but it looks like you can go to the URL

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

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

Example:

 https://pypi.python.org/simple/django-filebrowser-no-grappelli/ 
+76
Mar 30 '15 at 23:25
source share

This can be seen in the new user interface for pypi:

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

For example:

 https://pypi.org/project/django-filebrowser-no-grappelli/#history 
+35
Jan 04 '17 at 19:38 on
source share

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

 #!/usr/bin/env python3 import sys import requests from 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 version:

 $ python versions.py django-filebrowser-no-grappelli 3.7.8 3.7.7 3.7.6 3.7.5 3.7.4 3.7.3 3.7.2 3.7.1 3.7.0 3.6.2 3.6.1 3.5.8 3.5.7 3.5.6 3.1.1 
+9
Nov 22 '16 at 15:41
source share

Using pip , you can find out all available versions of this package:

 pip install django-filebrowser-no-grappelli==randomwords 

This will exit all available packages:

  Could not find a version that satisfies the requirement django-filebrowser-no-grappelli==randomwords (from versions: 3.1.1, 3.5.6, 3.5.7, 3.5.8, 3.6.1, 3.6.2, 3.7.0, 3.7.1, 3.7.2) No matching distribution found for django-filebrowser-no-grappelli==randomwords 
+6
Jul 06 '17 at 9:22 on
source share

Save the following code in get_version.py :

 import json import sys import urllib2 from distutils.version import LooseVersion name = sys.argv[1] resp = urllib2.urlopen("https://pypi.python.org/pypi/{}/json".format(name)) data = json.load(resp) for ver in sorted([LooseVersion(version) for version in data["releases"].keys()]): print ver.vstring 

Run to get a sorted list of all versions of the package:

 python get_version.py %PACKAGE-NAME% 
+4
Sep 15 '16 at 8:25
source share

If you use pip to install your package, you can use:

 pip install yolk yolk -V django-filebrowser-no-grappelli 

Unfortunately, the only available version is as follows:

 django-filebrowser-no-grappelli 3.1.1 

However, you can try to find another version on the Internet and install:

 pip install -Iv <url_package> 
+3
Aug 03 '14 at 11:32
source share



All Articles