Package for interacting with cve-search
Project description
The CveXplore package aims to provide an object related way to interact with the data collected or hosted by a cve-search instance. It provides an ambiguous way to interact either to the cve-search mongodb or to the cve-search API. All the data provided by this interaction is converted into objects before being returned. And thus providing a way to interact with objects rather then with raw data.
Dependencies
As stated you will need to have one of two things; in order to fully use this package you need access to:
A cve-search mongodb instance
OR
A cve-search API instance
Both of them can be easily created on a physical machine or via a docker instance of cve-search; please check cve-search or CVE-Search-Docker for further details.
Installation
Package is hosted on pypi, so just run:
pip install CveXplorer
Usage
Instantiation
CveXplore can be instantiated with different parameters, depending to which data source you’re going to connect to. If no parameters are given it is assumed that you’re going to connect to a mongodb database running on localhost with default port and security settings (Cve Search default parameters).
>>> from CveXplore import CveXplore
>>> cvx = CveXplore()
>>> cvx.version
'0.1.2'
To let CveXplore connect to an mongodb with specific parameters:
>>> from CveXplore import CveXplore
>>> cvx = CveXplore(mongodb_connection_details={"host": "192.168.1.1", "port": 27017})
>>> cvx.version
'0.1.2'
And to let CveXplore talk to an Cve Search API:
>>> from CveXplore import CveXplore
>>> cvx = CveXplore(api_connection_details={"address": ("mylocal.cve-search.int", 443), "api_path": "api"})
>>> cvx.version
'0.1.2'
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
Built Distribution
Hashes for CveXplore-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2bbf202a831245c7b60a79efcc0c533ef4c1f4180f4b335ee18ff04a3b79b0ff |
|
MD5 | 5eadeb53b9c58edaa4cdc74b7f047bc9 |
|
BLAKE2b-256 | 5b12a0d62610d2f24a8055ae0b8179083a95a9c065c90da477b7217d1819a777 |