vdb/lib/utils.py
def parse_cpe(cpe_uri):
    """
    Parse cpe uri to return the parts
    :param cpe_uri: CPE to parse
    :return: Individual parts
    """
    parts = CPE_FULL_REGEX.match(cpe_uri)
    if parts:
        return (
            parts.group("vendor"),
            parts.group("package"),
            parts.group("version"),
            parts.group("cve_type"),
        )
    else:
        return "", None, None, None

    Parse cpe uri to return the parts
    :param cpe_uri: CPE to parse
    :return: Individual parts
    
Parse cpe uri to return the parts
Parse cpe uri to return the parts
def parse_cpe(cpe_uri):
    parts = CPE_FULL_REGEX.match(cpe_uri)
    if parts:
        return (
            parts.group("vendor"),
            parts.group("package"),
            parts.group("version"),
            parts.group("cve_type"),
        )
    else:
        return "", None, None, None
def parse_cpe ( cpe_uri ) : parts = CPE_FULL_REGEX . match ( cpe_uri ) if parts : return ( parts . group ( "vendor" ) , parts . group ( "package" ) , parts . group ( "version" ) , parts . group ( "cve_type" ) , ) else : return "" , None , None , None
Parse cpe uri to return the parts
Parse cpe uri to return the parts
"""
    Parse cpe uri to return the parts
    :param cpe_uri: CPE to parse
    :return: Individual parts
    """
None
cpe_uri
CPE to parse
CPE to parse