List of PyPI classifiers

Question:

I can get a list of trove classifiers like this:

>>> import requests
>>> response = requests.get('https://pypi.python.org/pypi', params={':action': 'list_classifiers'})
>>> classifiers = response.text.splitlines()
>>> len(classifiers)
649
>>> classifiers[:5]
['Development Status :: 1 - Planning',
 'Development Status :: 2 - Pre-Alpha',
 'Development Status :: 3 - Alpha',
 'Development Status :: 4 - Beta',
 'Development Status :: 5 - Production/Stable']

Is there any way to get this list without using network access? For example, does the list exist in distutils or something? Where is the source of truth?

Asked By: wim

||

Answers:

The source of truth is at PyPI only. Initially the list of classifiers was in trove.py, but later moved to SQL.

Answered By: phd

Per @phd’s answer, PyPI has the source of truth for trove classifiers. To add on, however, the package trove-classifers can list and confirm that a classifier exists.1 2 Said package is maintained by the Python Package Authority0, and should be accurate.

Answered By: Tomodachi94
Categories: questions Tags: , , , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.