API
API connection
API connection
- class CveXplore.api.connection.api_db.ApiDatabaseCollection(baseurl, collname, api_path=None, proxies=None, user_agent='CveXplore')[source]
Bases:
object
The ApiDatabaseCollection mimics the behaviour of the CveSearchCollection
- class CveXplore.api.connection.api_db.ApiDatabaseSource(baseurl, api_path=None, proxies=None, user_agent='CveXplore')[source]
Bases:
object
The ApiDatabaseSource mimics the behaviour of the MongoDBConnection.
API helpers
Cve Search API
- class CveXplore.api.helpers.cve_search_api.CveSearchApi(db_collection, filter=None, limit=None, skip=None, sort=None)[source]
Bases:
ApiBaseClass
The CveSearchApi handles the different arguments in order to perform a query to a specific Cve Search api endpoint. It mimics the pymongo cursor’s behaviour to provide an ambiguous way to talk to either an API or a mongodb.
- __init__(db_collection, filter=None, limit=None, skip=None, sort=None)[source]
Create a new CveSearchApi object.
- __next__()
Iterate to the results and return database objects