#python-packages

trove-classifiers

Python packaging classifiers as an Enum

69 breaking releases

new 0.70.0 Oct 22, 2024
0.68.0 Oct 16, 2024
0.66.0 Jul 3, 2024
0.61.0 Mar 26, 2024
0.1.0 May 3, 2023

#34 in #python-packages

Download history 321/week @ 2024-07-01 5/week @ 2024-07-15 75/week @ 2024-07-29 31/week @ 2024-08-05 28/week @ 2024-08-12 15/week @ 2024-08-26 4/week @ 2024-09-02 163/week @ 2024-09-16 127/week @ 2024-09-23 76/week @ 2024-09-30 31/week @ 2024-10-07 165/week @ 2024-10-14

405 downloads per month

BSD-3-Clause

100KB
2K SLoC

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.


lib.rs:

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"),
}

Dependencies

~1.5MB
~38K SLoC