def version_no_valid(version: str) -> bool:
    """
    Determine if string version is valid for getting specific PyPi package version
    :param version: version string
    :return: True if valid, False otherwise
    """

    try:
        x = [int(v) for v in version.split('.')]
        return 2 <= len(x) <=3
    except Exception:
        return False