MCPcopy
hub / github.com/madhavanmalolan/awesome-reactnative-ui / getRepoInfo

Function getRepoInfo

extractor.py:57–66  ·  view source on GitHub ↗
(repo)

Source from the content-addressed store, hash-verified

55 return "This week"
56
57def getRepoInfo(repo):
58 response = {'stars':'','lastUpdate':'','issues':'', 'name':'','description':'', 'image':''}
59 info = json.loads(curl('https://api.github.com/repos/'+repo))
60 response['stars'] = str(info['stargazers_count'])
61 response['lastUpdate'] = getAgoString(info['updated_at'])
62 response['issues'] = str(info['open_issues'])
63 response['name'] = info['name']
64 response['description'] = info['description']
65 response['image'] = getImage(repo)
66 return response
67
68count = 0;
69print(sys.argv[1])

Callers 1

extractor.pyFile · 0.85

Calls 3

curlFunction · 0.85
getAgoStringFunction · 0.85
getImageFunction · 0.85

Tested by

no test coverage detected