def fetch_requirements(requirements_file_path):
 links = []
 reqs = []
 for req in parse_requirements(requirements_file_path, session=False):
  if req.link:
   links.append(str(req.link))
  reqs.append(str(req.req))
 return (reqs, links)

def fetch_requirements ( requirements_file_path ) : links = [ ] reqs = [ ] for req in parse_requirements ( requirements_file_path , session = False ) : if req . link : links . append ( str ( req . link ) ) reqs . append ( str ( req . req ) ) return ( reqs , links )
return a list of requirements and links by parsing the provided requirements file .