

def rate_limit_status(twitter):
    'Print current Twitter API rate limit status.'
    rls = twitter.application.rate_limit_status()
    print(('Remaining API requests: %i/%i (interval limit)' % (rls.rate_limit_remaining, rls.rate_limit_limit)))
    print(('Next reset in %is (%s)' % (int((rls.rate_limit_reset - _time.time())), _time.asctime(_time.localtime(rls.rate_limit_reset)))))

dataset/ETHPy150Open sixohsix/twitter/twitter/archiver.py rate_limit_status/original