Canonical source for classifiers on PyPI. https://pypi.org/p/trove-classifiers/
  • Python 98.7%
  • Makefile 1.3%
Find a file
2026-09-21 07:28:04 -06:00
.github Restrict OIDC token to publish job (#249) 2026-06-01 15:40:38 -04:00
bin Sort classifiers by version and add 'classifiers_sorted' function (#57) 2021-02-28 07:57:09 -06:00
requirements Add type hints (#96) 2022-03-16 17:30:18 -04:00
src/trove_classifiers Add support for Odoo 20.0 in classifiers (#259) 2026-09-21 07:28:04 -06:00
tests Don't assume basename of sys.executable is "python" (#212) 2025-05-01 08:45:15 -04:00
.gitignore Version 1.0.0 2020-03-23 17:53:05 -05:00
CONTRIBUTING.md Add the "Framework :: AWS CDK :: 1" classifier (#44) 2020-08-14 12:46:08 -05:00
LICENSE Initial commit 2020-03-23 12:45:12 -04:00
Makefile Fix python usage in makefile (#217) 2025-05-08 11:53:43 -04:00
MANIFEST.in Revise distributions (#36) 2020-08-07 15:50:35 -05:00
pyproject.toml fix: incorrect specification of mypy section in pyproject.toml (#144) 2023-05-02 12:31:04 -04:00
README.md Support 'python -m trove_classifiers' (#23) 2020-04-09 18:57:14 -05:00
setup.py Add entry point to enable installing with pipx or uvx (#211) 2025-04-28 18:48:50 -04:00

Canonical source for classifiers on PyPI.

Classifiers categorize projects per PEP 301. Use this package to validate classifiers in packages for PyPI upload or download.

Usage

To install from PyPI:

$ pip install trove-classifiers

This package can be invoked as a module to print a list of classifiers:

$ python -m trove_classifiers | grep -Ei pyramid
Framework :: Pyramid

In addition, this package's API is two importable objects:

Classifiers (trove_classifiers.classifiers)

A set containing classifiers (as strings). Useful for determining membership.

Example - determine if a classifier is valid:

>>> from trove_classifiers import classifiers
>>> 'License :: OSI Approved' in classifiers
True
>>> 'Fuzzy :: Wuzzy :: Was :: A :: Bear' in classifiers
False
>>>

Deprecated classifiers (trove_classifiers.deprecated_classifiers)

A dict, mapping a deprecated classifier (string) to a list of classifiers which replaces it (strings).

Example - determine if a classifier is deprecated:

>>> from trove_classifiers import deprecated_classifiers
>>> 'License :: OSI Approved' in deprecated_classifiers
False
>>> 'Natural Language :: Ukranian' in deprecated_classifiers
True
>>> deprecated_classifiers["Natural Language :: Ukranian"]
['Natural Language :: Ukrainian']