aboutsummaryrefslogtreecommitdiffstats
path: root/pygithub3/github.py
diff options
context:
space:
mode:
Diffstat (limited to 'pygithub3/github.py')
-rw-r--r--pygithub3/github.py15
1 files changed, 14 insertions, 1 deletions
diff --git a/pygithub3/github.py b/pygithub3/github.py
index 4941ffd..d05f069 100644
--- a/pygithub3/github.py
+++ b/pygithub3/github.py
@@ -6,7 +6,14 @@ from pygithub3.services.repos import Repo
class Github(object):
- """ Main entrance """
+ """
+ You can preconfigure all services globally with a ``config`` dict. See
+ :attr:`~pygithub3.services.base.Service`
+
+ Example::
+
+ gh = Github(user='kennethreitz', token='ABC...', repo='requests')
+ """
def __init__(self, **config):
self._users = User(**config)
@@ -14,8 +21,14 @@ class Github(object):
@property
def users(self):
+ """
+ :ref:`User service <User service>`
+ """
return self._users
@property
def repos(self):
+ """
+ :ref:`Repos service <Repos service>`
+ """
return self._repos