Registry / serialization / shippinglabel

shippinglabel

JSON →
library2.3.0pypypiunverified

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.

pip install shippinglabel
INSTALL
IMPORT
SIG · SHIPPINGLABEL
S
shippinglabel
serializationpythonv2.3.0
Install
2.2s avg
Import
—
Disk
19MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.9–3.13
musl
3.9–3.13
Install & Compatibility
Where this runs
tested against v2.3.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.10–3.920 runs
installs and imports cleanly · install 0.0s · import 0.000s · 20.5MB
glibc
py 3.10–3.920 runs
installs and imports cleanly · install 2.2s · import 0.000s · 21MB
19MB installed
● package 19MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

get_valid_classifiers
✓ from shippinglabel import get_valid_classifiers
✗ from shippinglabel import get_valid_classifiers

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}")
Debug
Known issues
breakingVersion 2.0.0 dropped support for Python 3.6. Users on Python 3.6 will encounter `ImportError` or `SyntaxError`.
fix
Upgrade your Python interpreter to 3.7 or a later supported version.
affects: >=2.0.0
breakingThe `shippinglabel.dependencies` module was entirely removed in 2.0.0.
fix
Migrate usage to `shippinglabel.requirements` for requirement parsing or use the `packaging` library directly for PEP 508 parsing.
affects: >=2.0.0
breakingThe `shippinglabel.entry_points` module was entirely removed in 2.0.0.
fix
Refactor code to use standard `importlib.metadata` (Python 3.8+) or `entrypoints` library for entry point discovery.
affects: >=2.0.0
gotchaWhile `trove-classifiers` is a declared dependency, `shippinglabel` includes a vendored copy. If you explicitly install a different version of `trove-classifiers`, `shippinglabel` will use that instead, potentially leading to inconsistencies if there are API changes.
fix
To ensure consistent classifier validation, rely on `shippinglabel`'s bundled `trove-classifiers` or explicitly install and manage the `trove-classifiers` version if you have it as a direct dependency in other parts of your project.
affects: All versions
Upgrade
Version history
2.3.0latest on PyPI · released May 8, 2025
Audit
Dependencies
dist-metarequiredManages Python distribution metadata.
dom-tomlrequiredParses TOML configuration files, used for project metadata.
domdf-python-toolsrequiredProvides general utility functions for Python development.
packagingrequiredCore utilities for Python package version handling and environment markers.
typing-extensionsrequiredBackported and experimental type hints.
trove-classifiersrequiredProvides canonical PyPI classifiers. Although vendored, it is a declared dependency; a newer installed version takes precedence.
Agent activity
19 hits · last 30 days
node
18
Resources
shippinglabel — pip install shippinglabel · libregistry