Crate trove_classifiers

source ·
Expand description

Python packaging classifiers as an Enum.

trove-classifiers encompass all valid PyPI classifiers, which can be found at https://pypi.org/classifiers/.

The exact set of classifiers that is supported is pulled from trove-classifiers which is the canonical source of PyPI’s classifiers.

Trove classifiers were first defined in PEP-301 and are metadata tags that can be added to python package distributions.

Examples

use std::str::FromStr;
use trove_classifiers::Classifier;

let possible_classifier = "Development Status :: 5 - Production/Stable";

match Classifier::from_str(possible_classifier) {
    Ok(classifier) => println!("Yes, {classifier} is a classifier known to pypi.org"),
    Err(_) => println!("No, {possible_classifier} is unknown to pypi.org"),
}

Enums§

Constants§

  • The version of the python package pypa/trove-classifiers that is captured by Classifier