def is_ssh_url(url):
 if (('@' in url) and ('://' not in url)):
  return True
 for scheme in ('ssh://', 'git+ssh://', 'ssh+git://'):
  if url.startswith(scheme):
   return True
 return False

def is_ssh_url ( url ) : if ( ( '@' in url ) and ( '://' not in url ) ) : return True for scheme in ( 'ssh://' , 'git+ssh://' , 'ssh+git://' ) : if url . startswith ( scheme ) : return True return False
check if url is ssh .