#python-packages #python #pypi #categories #pep301 #pypa

trove-classifiers

Python packaging classifiers as an Enum

61 breaking releases

new 0.62.0 Apr 11, 2024
0.61.0 Mar 26, 2024
0.60.0 Mar 4, 2024
0.31.0 Dec 7, 2023
0.1.0 May 3, 2023

#2 in #pypi

Download history 20/week @ 2024-01-08 7/week @ 2024-01-15 14/week @ 2024-01-29 9/week @ 2024-02-05 625/week @ 2024-02-12 945/week @ 2024-02-19 251/week @ 2024-02-26 201/week @ 2024-03-04 55/week @ 2024-03-11 1/week @ 2024-03-18 155/week @ 2024-03-25 47/week @ 2024-04-01

265 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
~34K SLoC