import pkg_resources


def _get_entry_points(keyword, strip=[], package_prefix="bob.bio."):
    """Returns the list of entry points for registered resources with the given keyword."""
    return [
        entry_point
        for entry_point in pkg_resources.iter_entry_points(package_prefix + keyword)
        if not entry_point.name.startswith(tuple(strip))
    ]