aboutsummaryrefslogtreecommitdiffstats
path: root/MgaRepo
diff options
context:
space:
mode:
authorPer Øyvind Karlsen <proyvind@moondrake.org>2016-06-27 23:56:48 +0200
committerPer Øyvind Karlsen <proyvind@moondrake.org>2016-06-27 23:56:48 +0200
commitc39ea1b41302c39d1af36e7d05126df0bcc55516 (patch)
tree0a3a0b25a1f0b98e96f75b98b18d8082d1f9e88e /MgaRepo
parentf26fd193dc0912afd70d3b10695dad50039ebfc4 (diff)
downloadmgarepo-c39ea1b41302c39d1af36e7d05126df0bcc55516.tar
mgarepo-c39ea1b41302c39d1af36e7d05126df0bcc55516.tar.gz
mgarepo-c39ea1b41302c39d1af36e7d05126df0bcc55516.tar.bz2
mgarepo-c39ea1b41302c39d1af36e7d05126df0bcc55516.tar.xz
mgarepo-c39ea1b41302c39d1af36e7d05126df0bcc55516.zip
start on a GitHub class...
Diffstat (limited to 'MgaRepo')
-rw-r--r--MgaRepo/GitHub.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/MgaRepo/GitHub.py b/MgaRepo/GitHub.py
new file mode 100644
index 0000000..519b9e4
--- /dev/null
+++ b/MgaRepo/GitHub.py
@@ -0,0 +1,10 @@
+import github
+
+from MgaRepo import Error, config
+
+class GitHub(object):
+ def __init__(self, username = config.get("github", "login"), password = config.get("github", "password")):
+ print("username: %s password: %s" % (username, password))
+ self.github = github.Github(login_or_token=username, password=password)
+ self.organization = self.github.get_organization(config.get("github", "organization", "mdkcauldron"))
+ self.repos = self.organization.get_repos()