Metadata-Version: 2.1
Name: cve_lookup
Version: 0.1.0
Summary: Look up CVEs and get details about them.
Home-page: UNKNOWN
Author: MachineThing
License: MIT
Project-URL: Repository, https://github.com/machinething/cve_lookup
Project-URL: Issues, https://github.com/machinething/cve_lookup/issues
Project-URL: MachineThing, https://masonfisher.net
Keywords: cve,simple,requests,search,cvss
Platform: UNKNOWN
Classifier: Operating System :: OS Independent
Classifier: License :: OSI Approved :: MIT License
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3 :: Only
Requires-Python: >3.8,<4
Description-Content-Type: text/markdown
License-File: LICENSE.md

# CVE Lookup
[![Version](https://img.shields.io/pypi/v/cve-lookup)](https://pypi.org/project/cve_lookup) [![MIT License](https://img.shields.io/pypi/l/cve-lookup)](https://github.com/machinething/cve_lookup/blob/development/LICENSE.md) [![Language percent](https://img.shields.io/github/languages/top/Machinething/cve_lookup)](https://github.com/machinething/cve_lookup)

Look up Common Vulnerabilities and Exposures (CVE for short) and get details about them.

# How to use
## As a program
```sh
$ cve_lookup CVE-2017-5754
CVE-2017-5754
CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N
(AV:L/AC:M/Au:N/C:C/I:N/A:N)
4.7 "Medium"
```

## As a library
```python
import cve_lookup

my_cve = cve_lookup.cve("CVE-2017-5754")
print(my_cve.id)
print(my_cve.cvss3v)
print(my_cve.cvss2v)
print(round(my_cve.cvss2.score_overall, 1), '\"{}\"'.format(my_cve.cvss2.score_name))
```

# Install
#### From PyPi
```sh
$ pip3 install cve_lookup
```

#### From GitHub

```sh
$ git clone https://github.com/machinething/cve-lookup
$ cd cve-lookup
$ git checkout production # Skip if you want a development build
$ pip3 install -r requirements.txt
$ python3 setup.py install
```

## Requirements/Dependencies

- Python3 and Pip3
- An internet connection (You probably have one)


