Skip to content

Instantly share code, notes, and snippets.

import os
import requests
from dotenv import load_dotenv
from utils import get_repos,show_repos
from time import sleep
#load the .env variables
load_dotenv()
#set the api link
GITHUB_URL = os.getenv('GITHUB_URL')
import requests
def get_repos(github_url,username,token):
"""[This function is used to list github repositories for an authenticated user.]
Args:
github_url ([string]): [the github api url]
username ([string]): [your github username]
token ([string]): [your github personal access token]
Returns:
[dict]: [a collection of repositories {id:repository_name}]
@bricefotzo
bricefotzo / notebook.ipynb
Last active April 4, 2021 02:17
notebook.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.