vdb/lib/db.py
def vendor_pkg_search(db, vendor, name, version):
    """Search for a given package and convert into Vulnerability Occurence

    :param db: db instance
    :param vendor: Vendor name
    :param name: Name of the package
    :param version: Package version

    :return List of vulnerability occurrence or none
    """
    datas = storage.stream_bulk_search(
        [vendor.lower() + "|" + name.lower() + "|" + version],
        _key_func,
        db_file=db["db_file"],
    )
    return convert_to_occurrence(datas)
Search for a given package and convert into Vulnerability Occurence

    :param db: db instance
    :param vendor: Vendor name
    :param name: Name of the package
    :param version: Package version

    :return List of vulnerability occurrence or none
    


:return List of vulnerability occurrence or none
: return List of vulnerability occurrence or none
def vendor_pkg_search(db, vendor, name, version):
    datas = storage.stream_bulk_search(
        [vendor.lower() + "|" + name.lower() + "|" + version],
        _key_func,
        db_file=db["db_file"],
    )
    return convert_to_occurrence(datas)
def vendor_pkg_search ( db , vendor , name , version ) : datas = storage . stream_bulk_search ( [ vendor . lower ( ) + "|" + name . lower ( ) + "|" + version ] , _key_func , db_file = db [ "db_file" ] , ) return convert_to_occurrence ( datas )
Search for a given package and convert into Vulnerability Occurence
:param db: db instance
:param vendor: Vendor name
:param name: Name of the package
:param version: Package version
Search for a given package and convert into Vulnerability Occurence : param db : db instance : param vendor : Vendor name : param name : Name of the package : param version : Package version
"""Search for a given package and convert into Vulnerability Occurence

    :param db: db instance
    :param vendor: Vendor name
    :param name: Name of the package
    :param version: Package version

    :return List of vulnerability occurrence or none
    """
db
vendor
name
version