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
Release files for cvsser 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cvsser-1.1.0.tar.gz | 5.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cvsser-1.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 24.2 kB
Release files / cvsser-1.1.0.tar.gz
| Download URL | cvsser-1.1.0.tar.gz |
|---|---|
| Size | 5.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e165ba7a86b23e0e2cef515b320f40fb1b2f2f7e447f9cfccdfd4ceba827e550
|
|
BLAKE2b-256 checksum How to use checksums |
487822dbe4be0b5885446198a863688614baa3baa0aaa74497a2acad45de52c0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / cvsser-1.1.0-py3-none-any.whl
| Download URL | cvsser-1.1.0-py3-none-any.whl |
|---|---|
| Size | 18.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f9b6f5e3dec290ce65407521312228f907f3ce1c2aecc8d74a492e98452a8da6
|
|
BLAKE2b-256 checksum How to use checksums |
7ec6ae88275ed9a16d85d92b5f26c5540d78bf3645d09e10e0a1765be68e7101
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|