PyPI 分类器列表

List of PyPI classifiers

我可以这样得到 trove classifiers 的列表:

>>> 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']

有什么方法可以不使用网络访问来获取此列表?例如,该列表是否存在于 distutils 之类的东西中?真相的来源在哪里?

真实来源仅在 PyPI。最初分类器列表在 trove.py, but later moved to SQL.