ShippingLabel

2.3.0 · active · verified Thu Apr 16

Shippinglabel is a Python library providing utilities for handling packages, including checksums, classifiers, and requirements management. It is actively maintained by domdfcoding with frequent releases, currently at version 2.3.0.

Common errors

Warnings

Install

Imports

Quickstart

This quickstart demonstrates how to use the `shippinglabel.classifiers` module to programmatically retrieve and validate PyPI classifiers. It fetches the complete set of valid classifiers and checks for the presence of specific ones.

from shippinglabel.classifiers import get_valid_classifiers

# Get all valid PyPI classifiers as a frozenset
classifiers = get_valid_classifiers()
print(f"Total valid classifiers: {len(classifiers)}")

# Check if a specific classifier is valid
is_python3_only_valid = "Programming Language :: Python :: 3 :: Only" in classifiers
print(f"'Programming Language :: Python :: 3 :: Only' is valid: {is_python3_only_valid}")

is_non_existent_valid = "Operating System :: Brainfuck" in classifiers
print(f"'Operating System :: Brainfuck' is valid: {is_non_existent_valid}")

view raw JSON →