A module for interpreting and manipulating CVSS vector strings.
Project description
cvsser
cvsser is a simple library for interpreting CVSS vector strings and converting their metrics into ready-to-publish formats.
>>> import cvsser
>>> import json
>>> sample = "CVSS:3.0/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C"
>>> vs = cvsser.VectorString(sample)
>>> print(vs.privileges_required)
N
>>> print(json.dumps(vs.to_dict(style="verbose", parentheticals="values", include="mandatory"), indent=2))
{
"AV": {
"metric": "Attack Vector",
"value": "Local (L)"
},
"AC": {
"metric": "Attack Complexity",
"value": "High (H)"
},
"PR": {
"metric": "Privileges Required",
"value": "None (N)"
},
"UI": {
"metric": "User Interaction",
"value": "Required (R)"
},
"S": {
"metric": "Scope",
"value": "Unchanged (U)"
},
"C": {
"metric": "Confidentiality Impact",
"value": "High (H)"
},
"I": {
"metric": "Integrity Impact",
"value": "High (H)"
},
"A": {
"metric": "Availability Impact",
"value": "High (H)"
}
}
>>> print(json.dumps(vs.guide, indent=2))
{
"v2.0": {
"AV": {
"name": "Access Vector",
"values": {
"L": "Local",
"A": "Adjacent Network",
"N": "Network"
},
"type": "Base",
"mandatory": true
},
"AC": {
"name": "Access Complexity",
"values": {
"H": "High",
"M": "Medium",
"L": "Low"
},
"type": "Base",
"mandatory": true
},
...
Installing cvsser
cvsser is available on PyPI:
$ python -m pip install cvsser
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cvsser-1.1.0.tar.gz
(5.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
cvsser-1.1.0-py3-none-any.whl
(18.4 kB
view details)
File details
Details for the file cvsser-1.1.0.tar.gz.
File metadata
- Download URL: cvsser-1.1.0.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e165ba7a86b23e0e2cef515b320f40fb1b2f2f7e447f9cfccdfd4ceba827e550
|
|
| MD5 |
4454f746263bc467860574a2ad118312
|
|
| BLAKE2b-256 |
487822dbe4be0b5885446198a863688614baa3baa0aaa74497a2acad45de52c0
|
File details
Details for the file cvsser-1.1.0-py3-none-any.whl.
File metadata
- Download URL: cvsser-1.1.0-py3-none-any.whl
- Upload date:
- Size: 18.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f9b6f5e3dec290ce65407521312228f907f3ce1c2aecc8d74a492e98452a8da6
|
|
| MD5 |
a8d32f8e787772c49d9d49216d6e83f0
|
|
| BLAKE2b-256 |
7ec6ae88275ed9a16d85d92b5f26c5540d78bf3645d09e10e0a1765be68e7101
|