def get_view_from_url(url):
    matched = constants.RE_SPLIT_VIEW_URL.search(url)
    if not matched:
        raise BadURL("Cannot parse URL %s" % url)
    jenkinsurl, view_name = matched.groups()
    jenkinsci = Jenkins(jenkinsurl)
    return jenkinsci.get_view(view_name)
Factory method
dataset/ETHPy150Open ramonvanalteren/jenkinsapi/jenkinsapi/api.py/get_view_from_url