aboutsummaryrefslogtreecommitdiffstats
path: root/pygithub3/github.py
diff options
context:
space:
mode:
authorDavid Medina <davidmedina9@gmail.com>2012-03-03 11:26:04 +0100
committerDavid Medina <davidmedina9@gmail.com>2012-03-03 11:29:56 +0100
commit8345cf66caedf989a8b176e1ecf551bb6d9e846e (patch)
treefe629e13576b1af33a8aedc1cb3e703dea560bd9 /pygithub3/github.py
parentService repos done (diff)
downloadpython-github3-8345cf66caedf989a8b176e1ecf551bb6d9e846e.tar.xz
python-github3-8345cf66caedf989a8b176e1ecf551bb6d9e846e.zip
remaining_requests attr to Github and Services
Updated with each request
Diffstat (limited to 'pygithub3/github.py')
-rw-r--r--pygithub3/github.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/pygithub3/github.py b/pygithub3/github.py
index fd1cb26..23b5b0b 100644
--- a/pygithub3/github.py
+++ b/pygithub3/github.py
@@ -19,6 +19,12 @@ class Github(object):
self._repos = Repos(**config)
@property
+ def remaining_requests(self):
+ """ Limit of Github API v3 """
+ from pygithub3.core.client import Client
+ return Client.remaining_requests
+
+ @property
def users(self):
"""
:ref:`User service <User service>`