vdb/lib/db.py
def index_search(name, version):
    """Search the index for the given package name and version

    :param name: Name of the package
    :param version: Package version

    :return boolean True if the package should be found on the main database. False otherwise.
    """
    try:
        datas = bulk_index_search([{"name": name.lower(), "version": version}])
        return len(datas) > 0
    except IndexError:
        return False
Search the index for the given package name and version

    :param name: Name of the package
    :param version: Package version

    :return boolean True if the package should be found on the main database. False otherwise.
    
Search the index for the given package name and version
:param name: Name of the package
:param version: Package version

:return boolean True if the package should be found on the main database. False otherwise.
Search the index for the given package name and version : param name : Name of the package : param version : Package version : return boolean True if the package should be found on the main database . False otherwise .
def index_search(name, version):
    try:
        datas = bulk_index_search([{"name": name.lower(), "version": version}])
        return len(datas) > 0
    except IndexError:
        return False
def index_search ( name , version ) : try : datas = bulk_index_search ( [ { "name" : name . lower ( ) , "version" : version } ] ) return len ( datas ) > 0 except IndexError : return False
Search the index for the given package name and version
:param name: Name of the package
:param version: Package version
Search the index for the given package name and version : param name : Name of the package : param version : Package version
"""Search the index for the given package name and version

    :param name: Name of the package
    :param version: Package version

    :return boolean True if the package should be found on the main database. False otherwise.
    """
name
version