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?
Answers:
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.
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?
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.