From 8345cf66caedf989a8b176e1ecf551bb6d9e846e Mon Sep 17 00:00:00 2001 From: David Medina Date: Sat, 3 Mar 2012 11:26:04 +0100 Subject: remaining_requests attr to Github and Services Updated with each request --- pygithub3/github.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'pygithub3/github.py') diff --git a/pygithub3/github.py b/pygithub3/github.py index fd1cb26..23b5b0b 100644 --- a/pygithub3/github.py +++ b/pygithub3/github.py @@ -18,6 +18,12 @@ class Github(object): self._users = User(**config) 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): """ -- cgit v1.2.3-59-g8ed1b