aboutsummaryrefslogtreecommitdiffstats
path: root/pygithub3/github.py
diff options
context:
space:
mode:
authorDavid Medina <davidmedina9@gmail.com>2012-04-04 00:07:50 +0200
committerDavid Medina <davidmedina9@gmail.com>2012-04-04 00:07:50 +0200
commit3e551e6801a0031f1482ad5d9f30af9df78e9471 (patch)
tree9d28cc75691279ff75f079cd4e085e77241517af /pygithub3/github.py
parent:sparkles: Relase 0.2 :sparkles: (diff)
parentFix bug (diff)
downloadpython-github3-3e551e6801a0031f1482ad5d9f30af9df78e9471.tar.xz
python-github3-3e551e6801a0031f1482ad5d9f30af9df78e9471.zip
Gists service done
Diffstat (limited to 'pygithub3/github.py')
-rw-r--r--pygithub3/github.py16
1 files changed, 13 insertions, 3 deletions
diff --git a/pygithub3/github.py b/pygithub3/github.py
index 23b5b0b..0b302a1 100644
--- a/pygithub3/github.py
+++ b/pygithub3/github.py
@@ -2,6 +2,7 @@
# -*- encoding: utf-8 -*-
+#TODO: Move the imports out. setup related
class Github(object):
"""
You can preconfigure all services globally with a ``config`` dict. See
@@ -14,9 +15,11 @@ class Github(object):
def __init__(self, **config):
from pygithub3.services.users import User
- from pygithub3.services.repos import Repos
+ from pygithub3.services.repos import Repo
+ from pygithub3.services.gists import Gist
self._users = User(**config)
- self._repos = Repos(**config)
+ self._repos = Repo(**config)
+ self._gists = Gist(**config)
@property
def remaining_requests(self):
@@ -27,7 +30,7 @@ class Github(object):
@property
def users(self):
"""
- :ref:`User service <User service>`
+ :ref:`Users service <Users service>`
"""
return self._users
@@ -37,3 +40,10 @@ class Github(object):
:ref:`Repos service <Repos service>`
"""
return self._repos
+
+ @property
+ def gists(self):
+ """
+ :ref:`Gists service <Gists service>`
+ """
+ return self._gists