Canonical source for classifiers on PyPI (pypi.org).
Project description
Canonical source for classifiers on PyPI.
Classifiers categorize projects per PEP 301. Use this package to validate classifiers in packages for PyPI upload or download.
Usage
To install from PyPI:
$ pip install trove-classifiers
This package can be invoked as a module to print a list of classifiers:
$ python -m trove_classifiers | grep -Ei pyramid
Framework :: Pyramid
In addition, this package's API is two importable objects:
Classifiers (trove_classifiers.classifiers
)
A set
containing classifiers (as strings). Useful for determining membership.
Example - determine if a classifier is valid:
>>> from trove_classifiers import classifiers
>>> 'License :: OSI Approved' in classifiers
True
>>> 'Fuzzy :: Wuzzy :: Was :: A :: Bear' in classifiers
False
>>>
Deprecated classifiers (trove_classifiers.deprecated_classifiers
)
A dict
, mapping a deprecated classifier (string) to a list of classifiers
which replaces it (strings).
Example - determine if a classifier is deprecated:
>>> from trove_classifiers import deprecated_classifiers
>>> 'License :: OSI Approved' in deprecated_classifiers
False
>>> 'Natural Language :: Ukranian' in deprecated_classifiers
True
>>> deprecated_classifiers["Natural Language :: Ukranian"]
['Natural Language :: Ukrainian']
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for trove-classifiers-2021.9.23.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d99370fc0355a4464049dd54dde9a86fbe3b3f208a7285162d7da0928e993a7 |
|
MD5 | de5114a63bbd643b1dec5f41aaffa6dd |
|
BLAKE2b-256 | b8557e06a97de8635c106b578d0b7d66b7a93bf19b7e547b81d3bba407254060 |
Hashes for trove_classifiers-2021.9.23-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 30ebe9a4931c818a54a9f9eaa0cca55a823871a00f514f32d2a9657d96ec32b6 |
|
MD5 | 7d4d64f66bfdc4c3738971f34fa8818e |
|
BLAKE2b-256 | 4c3b8b3d9e9c08ca27c0aaebd390406db99dfc3a8bbc82839d4b5fcd2c45b53e |