Common Platform Enumeration for Python
CPE (this code) is a LGPL licensed Python package, implementing the CPE standards.
About the CPE standard
Common Platform Enumeration (CPE) is a standardized method of describing and identifying classes of applications, operating systems, and hardware devices present among an enterprise’s computing assets.
For more information, please visit the official website of CPE, developed by MITRE and maintained by NIST.
Features
CPE rich comparison.
CPE cross-version conversion.
CPE Language parsing and evaluation.
LGPL Licensed.
Semantic versioning.
Tests.
Installation

To install CPE execute:
$ pip install cpe
The latest stable version is always in PyPI.
Documentation
Documentation is available at ReadTheDocs.
Compatibility
Python: 2.7, 3.4
CPE: 1.1, 2.2, 2.3
CPE Formats: WFN, URI, FS.
Contribute

Follow the steps on the how to contribute document.
Metadata
Release files for cpe 1.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cpe-1.3.1.tar.gz | 942.2 kB | Without provenance | Details for cpe-1.3.1.tar.gz |
Release files / cpe-1.3.1.tar.gz
| Download URL | cpe-1.3.1.tar.gz |
|---|---|
| Size | 942.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f30a97881b6eb74a6d630552aebce03df22cddb7a587d632a13b4e14b66b95b0
|
|
BLAKE2b-256 checksum How to use checksums |
a4309b907ff7e4af8c64d5461ab7e7beeff5dc53893dd1c70347069915c82eb1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.6
|
Security for cpe 1.3.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.