nvdutils


Namenvdutils JSON
Version 2.5.1 PyPI version JSON
download
home_pageNone
SummaryA package for parsing, representing, and filtering NVD data.
upload_time2024-12-19 15:08:33
maintainerNone
docs_urlNone
authorNone
requires_python>=3.9
licenseNone
keywords package nvd utils
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # nvdutils
A package for parsing, representing, and filtering NVD data.

### Setup 
```sh
$ mkdir ~/.nvdutils
$ cd ~/.nvdutils
# Data for the JSONFeedsLoader
$ git clone https://github.com/fkie-cad/nvd-json-data-feeds.git
# CNA list for the base CVEDataLoader
$ git clone https://github.com/epicosy/cna-list.git
```

### Usage

```python
    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)
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "nvdutils",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": "package, nvd, utils",
    "author": null,
    "author_email": "Eduard Pinconschi <eduard.pinconschi@tecnico.ulisboa.pt>",
    "download_url": "https://files.pythonhosted.org/packages/e5/9d/9e9363b71f15f19dbacfd8df64003dfddb397c27d683546d2d151c0bde50/nvdutils-2.5.1.tar.gz",
    "platform": null,
    "description": "# nvdutils\nA package for parsing, representing, and filtering NVD data.\n\n### Setup \n```sh\n$ mkdir ~/.nvdutils\n$ cd ~/.nvdutils\n# Data for the JSONFeedsLoader\n$ git clone https://github.com/fkie-cad/nvd-json-data-feeds.git\n# CNA list for the base CVEDataLoader\n$ git clone https://github.com/epicosy/cna-list.git\n```\n\n### Usage\n\n```python\n    from nvdutils.core.loaders.json_loader import JSONFeedsLoader\n    from nvdutils.types.options import CVEOptions\n\n    cve_options = CVEOptions()\n    cve_options.cwe_options.cwe_id = 'CWE-79'\n    cve_options.cwe_options.has_cwe = True\n    cve_options.cwe_options.in_secondary = False\n    cve_options.cwe_options.is_single = True\n    cve_options.cvss_options.has_v3 = True\n    cve_options.config_options.is_single_vuln_product = True\n    cve_options.desc_options.is_single_component = True\n    cve_options.desc_options.is_single_vuln = True\n\n    # https://github.com/fkie-cad/nvd-json-data-feeds\n    loader = JSONFeedsLoader(data_path='/path/to/nvd-json-data-feeds', options=cve_options,\n                             verbose=True)\n    loader.load()\n    print(len(loader))\n\n    cve = JSONFeedsLoader.load_cve('/path/to/CVE-2019-0001.json')\n    print(cve)\n```\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A package for parsing, representing, and filtering NVD data.",
    "version": "2.5.1",
    "project_urls": {
        "homepage": "https://github.com/epicosy/nvdutils",
        "repository": "https://github.com/epicosy/nvdutils"
    },
    "split_keywords": [
        "package",
        " nvd",
        " utils"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "70a5f564421f94b8d6a94c5fcaf1720a89d9528c5d03cc4d44c75a3e70f2610b",
                "md5": "f88f3e94867bdbd1f5be70d6c13eec26",
                "sha256": "b0f4988a48f5d54079dc25c3fab35e4018fbc57dfc9200d8ac56c9f031281f91"
            },
            "downloads": -1,
            "filename": "nvdutils-2.5.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "f88f3e94867bdbd1f5be70d6c13eec26",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 29882,
            "upload_time": "2024-12-19T15:08:30",
            "upload_time_iso_8601": "2024-12-19T15:08:30.544028Z",
            "url": "https://files.pythonhosted.org/packages/70/a5/f564421f94b8d6a94c5fcaf1720a89d9528c5d03cc4d44c75a3e70f2610b/nvdutils-2.5.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e59d9e9363b71f15f19dbacfd8df64003dfddb397c27d683546d2d151c0bde50",
                "md5": "87561644c3b31fa78ddfbba75c88059e",
                "sha256": "02bd61656ba42cc724064ab9098bfe9d6967ce82240a81fc8ceb2235dc816aad"
            },
            "downloads": -1,
            "filename": "nvdutils-2.5.1.tar.gz",
            "has_sig": false,
            "md5_digest": "87561644c3b31fa78ddfbba75c88059e",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 23710,
            "upload_time": "2024-12-19T15:08:33",
            "upload_time_iso_8601": "2024-12-19T15:08:33.269057Z",
            "url": "https://files.pythonhosted.org/packages/e5/9d/9e9363b71f15f19dbacfd8df64003dfddb397c27d683546d2d151c0bde50/nvdutils-2.5.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-12-19 15:08:33",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "epicosy",
    "github_project": "nvdutils",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "nvdutils"
}
        
Elapsed time: 0.44754s