Registry / devops / trove-classifiers

trove-classifiers

JSON →
library2026.6.1.19pypypi✓ verified 26d ago

Provides the canonical set of classifiers for PyPI, enabling validation and categorization of Python projects. Current version: 2026.1.14.14. Maintained with regular updates to reflect the latest standards and additions in Python packaging.

pip install trove-classifiers
INSTALL
IMPORT
SIG · TROVE-CLASSIFIERS
T
trove-classifiers
devopspythonv2026.6.1.19
Install
1.6s avg
Import
11ms
Disk
16MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v2026.6.1.19 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.012s · 17.9MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.6s · import 0.006s · 18MB
16MB installed
● package 16MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

classifiers
from trove_classifiers import classifiers
Access the set of valid classifiers.
deprecated_classifiers
from trove_classifiers import deprecated_classifiers
Access the dictionary of deprecated classifiers.

Example usage to validate a classifier.

from trove_classifiers import classifiers # Check if a classifier is valid if 'License :: OSI Approved' in classifiers: print('Valid classifier') else: print('Invalid classifier')
Debug
Known issues
breakingThe 'deprecated_classifiers' dictionary may change in future versions, potentially affecting code that relies on specific deprecated classifiers.
fix
Regularly review the 'deprecated_classifiers' dictionary to ensure compatibility with future versions.
affects: 2026.1.14.14
gotchaRunning pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead.
fix
Use a virtual environment instead: https://pip.pypa.io/warnings/venv
affects: all
breakingRunning pip as the 'root' user can result in broken permissions and conflicting behavior with the system package manager, potentially rendering your system unusable. It is recommended to use a virtual environment instead.
fix
Use a virtual environment for package management. If running as root is necessary, use the '--root-user-action' option to suppress this warning after understanding the implications.
affects: pip: >=25.3
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'trove_classifiers'
The 'trove-classifiers' package is not installed in the current Python environment.
fix
pip install trove-classifiers
ImportError: cannot import name 'Classifier' from 'trove_classifiers'
The 'trove_classifiers' library does not expose a class or object named 'Classifier' for direct import; classifiers are typically handled as strings or accessed via provided functions and data structures.
fix
Use `trove_classifiers.list_classifiers()` to get all classifiers or `trove_classifiers.is_valid_classifier()` to check a specific classifier string.
AttributeError: module 'trove_classifiers' has no attribute 'validate_classifier'
The 'trove_classifiers' module does not have an attribute or function named 'validate_classifier'; the correct function for validation is 'is_valid_classifier'.
fix
Use `trove_classifiers.is_valid_classifier(classifier_string)` to check if a classifier is valid.
TypeError: expected string, int found
The `trove_classifiers.is_valid_classifier()` function expects a string argument representing the classifier, but received an integer or other non-string type.
fix
Ensure the argument passed to `trove_classifiers.is_valid_classifier()` is a string, for example: `trove_classifiers.is_valid_classifier("Programming Language :: Python :: 3.9")`.
Upgrade
Version history
2026.6.1.19latest on PyPI · released Jun 1, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
8
Amazon
1
Resources
trove-classifiers — pip install trove-classifiers · libregistry