A package for parsing, representing, and filtering NVD data.
Project description
nvdutils
A package for parsing, representing, and filtering NVD data.
Setup
$ mkdir ~/.nvdutils
$ cd ~/.nvdutils
# Data for the JSONFeedsLoader
$ git clone https://github.com/fkie-cad/nvd-json-data-feeds.git
Usage
from nvdutils.core.loaders.json_loader import JSONFeedsLoader
from nvdutils.types.options import CVEOptions
cve_options = CVEOptions()
cve_options.cwe_options.cwe_id = 'CWE-79'
cve_options.cwe_options.has_cwe = True
cve_options.cwe_options.in_secondary = False
cve_options.cwe_options.is_single = True
cve_options.cvss_options.has_v3 = True
cve_options.config_options.is_single_vuln_product = True
cve_options.desc_options.is_single_component = True
cve_options.desc_options.is_single_vuln = True
# https://github.com/fkie-cad/nvd-json-data-feeds
loader = JSONFeedsLoader(data_path='/path/to/nvd-json-data-feeds', options=cve_options,
verbose=True)
loader.load()
print(len(loader))
cve = JSONFeedsLoader.load_cve('/path/to/CVE-2019-0001.json')
print(cve)
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
nvdutils-0.2.0.tar.gz
(12.7 kB
view details)
Built Distribution
nvdutils-0.2.0-py3-none-any.whl
(13.6 kB
view details)
File details
Details for the file nvdutils-0.2.0.tar.gz
.
File metadata
- Download URL: nvdutils-0.2.0.tar.gz
- Upload date:
- Size: 12.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.10.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 951281a5e51ca69af7a480f84af0ab279a31922c0d0461606e7824a09c6c9f38 |
|
MD5 | 21cabb54410e1d1b2568394bfea0bff8 |
|
BLAKE2b-256 | f167a665641f9443540bd4e77a5b77b287cae24dff453d36c53c0b651b622878 |
File details
Details for the file nvdutils-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: nvdutils-0.2.0-py3-none-any.whl
- Upload date:
- Size: 13.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.10.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3595842006d4d4e97bfd047abd46b72a8d2563764dee15992bfadd4731db8db7 |
|
MD5 | 65a90ac1801d15f2a976085828d745f1 |
|
BLAKE2b-256 | cf775064cf2df9ac193f7bad381ed88a5996915f7f18555c103df1b83e7dad00 |