Newer
Older
[![licence-badge]](/LICENCE.txt)
Trove Classifiers Enums
=======================
**Trove classifiers made available as enums for strict type and value checking**
Installation
------------
Install with pip:
> These are interim instructions, with project release this will be updated.
```shell
pip install https://code.kodo.org.uk/dom/trove-classifiers-enum
```
Usage
-----
Lookups can be either via normal Enum class access, with Classifier subclasses sometimes
being nested; or by calling the Classifier base class with a value.
The following each produce the same object:
```python
from trove_classifiers_enums import Classifier, OperatingSystem
Classifier("Operating System :: POSIX :: Linux")
OperatingSystem.POSIX("Operating System :: POSIX :: Linux")
OperatingSystem.POSIX['Linux']
OperatingSystem.POSIX.Linux
```
---
[licence-badge]:
https://img.shields.io/badge/licence-Apache--2.0-orange.svg
"Licence: Apache-2.0"