def getRepos(): """Returns all the repos under the user.""" github = connect() user = github.get_user() # Get all Repos! all_repos = user.get_repos() return all_repos
def getdetails(name): """Gives details about the repo. Parameters ---------- name : str The name of user's repo of which he wants details. """ github = connect() user = github.get_user() repo = user.get_repo("NickPy") return repo
def info(): """get name of user and details of a repo.""" github = connect() user = github.get_user("nickedes") repo = user.get_repo("indent") return user.name, repo.name