def names_from_url(repo_url):
    """names_from_url will return the username and repo name, given a repo url
    :param repo_url: the full url of the github repo
    """
    if repo_url[-1] == '/':
        repo_url = repo_url[:-1]
    repo_name = repo_url.split('/')[-1]
    user_name = repo_url.split('/')[-2]
    return user_name, repo_name
