aboutsummaryrefslogtreecommitdiffstats
path: root/pygithub3/services/base.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/services/base.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/services/base.py')
-rw-r--r--pygithub3/services/base.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/pygithub3/services/base.py b/pygithub3/services/base.py
index 84379b0..1d33470 100644
--- a/pygithub3/services/base.py
+++ b/pygithub3/services/base.py
@@ -41,6 +41,10 @@ class Service(object):
self._client = Client(**config)
self.request_builder = Factory()
+ @property
+ def remaining_requests(self):
+ return Client.remaining_requests
+
def get_user(self):
return self._client.user