parameters: (url)
return_statement: return auth
docstring: Given a url with authentication components, extract them into a tuple of
      username,password.
  
      :rtype: (str,str)
docstring_summary: Given a url with authentication components, extract them into a tuple of
      username,password.
docstring_tokens: Given a url with authentication components extract them into a tuple of username password .
function: def get_auth_from_url(url):
      """Given a url with authentication components, extract them into a tuple of
      username,password.
  
      :rtype: (str,str)
      """
      parsed = urlparse(url)
  
      try:
          auth = (unquote(parsed.username), unquote(parsed.password))
      except (AttributeError, TypeError):
          auth = ('', '')
  
      return auth
function_tokens: def get_auth_from_url ( url ) : parsed = urlparse ( url ) try : auth = ( unquote ( parsed . username ) , unquote ( parsed . password ) ) except ( AttributeError , TypeError ) : auth = ( '' , '' ) return auth