aboutsummaryrefslogtreecommitdiffstats
path: root/pygitty.py
diff options
context:
space:
mode:
Diffstat (limited to 'pygitty.py')
-rwxr-xr-xpygitty.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/pygitty.py b/pygitty.py
new file mode 100755
index 0000000..2f348e1
--- /dev/null
+++ b/pygitty.py
@@ -0,0 +1,21 @@
+#!/usr/bin/env python3
+
+from github import Github
+import json
+import argparse
+
+class Argparser(object):
+ def __init__(self):
+ parser = argparse.ArgumentParser()
+ parser.add_argument("--repo", type=str, help="repo to look for")
+ self.args = parser.parse_args()
+
+def main():
+ argparser = Argparser()
+ passwd = json.load(open("/home/bloodstalker/scripts/github.json"))["pass"]
+ g = Github(passwd)
+ repo = g.get_repo(argparser.args.repo)
+ print(repo.stargazers_count)
+
+if __name__ == "__main__":
+ main()