def __period_remaining(self):
        '''
        Return the period remaining for the current rate limit window.

        :return: The remaing period.
        :rtype: float
        '''
        elapsed = self.clock() - self.last_reset
        return self.period - elapsed
Return the period remaining for the current rate limit window.

        :return: The remaing period.
        :rtype: float