def get_requirement_from_url(url):
 link = Link(url)
 egg_info = link.egg_fragment
 if (not egg_info):
  egg_info = splitext(link.filename)[0]
 return package_to_requirement(egg_info)

def get_requirement_from_url ( url ) : link = Link ( url ) egg_info = link . egg_fragment if ( not egg_info ) : egg_info = splitext ( link . filename ) [ 0 ] return package_to_requirement ( egg_info )
get a requirement from the url .