diff options
author | Per Øyvind Karlsen <proyvind@moondrake.org> | 2016-06-27 23:56:48 +0200 |
---|---|---|
committer | Per Øyvind Karlsen <proyvind@moondrake.org> | 2016-06-27 23:56:48 +0200 |
commit | c39ea1b41302c39d1af36e7d05126df0bcc55516 (patch) | |
tree | 0a3a0b25a1f0b98e96f75b98b18d8082d1f9e88e /MgaRepo | |
parent | f26fd193dc0912afd70d3b10695dad50039ebfc4 (diff) | |
download | mgarepo-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.py | 10 |
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() |