CPE - Common platform enumeration parser in Python
Project description
Cpe-parser
The cpe-parser libray is a parses for CPE value. This cpe value can be either uri biding cpe or formatted binding value.
🔨 Installation
$ pip install cpe-parser
Guide
from cpeparser import CpeParser
cpe = CpeParser()
result = cpe.parser("cpe:2.3:a:ipython:ipython:*:*:*:*:*:*:*:*")
print(result)
{
'part': 'a',
'vendor': 'ipython',
'product': 'ipython',
'version': '*',
'update': '*',
'edition': '*',
'language': '*',
'sw_edition': '*',
'target_sw': '*',
'target_hw': '*',
'other': '*'
}
Default values are returned as asterisks '*' that represent ANY.
NIST Documentation
This library follows the guidelines outline here: https://nvlpubs.nist.gov/nistpubs/Legacy/IR/nistir7695.pdf
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
cpeparser-0.0.1.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for cpeparser-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ddeb6142db604898ea81db8aeb4bfee6701d185b8d398fb20019d68ffa9fdbc |
|
MD5 | 8e61bcf3a8ba84f814c869e790ed1098 |
|
BLAKE2b-256 | ca17d2a4129374c4dc83ddb6623bf22436c4fc778c135af3c2b1c9ae43677f73 |