def get_package_url(cls, package, session=None, silent=False):
        response = get("{}/packages/{}".format(cls.bower_base_uri, package))
        return response.json().get("url", None)
def patkind(pattern, default=None):
    """If pattern is 'kind:pat' with a known kind, return kind."""
    return _patsplit(pattern, default)[0]