def rate_limited_generator(rate_limit_per_second, iterable):
 throttler = rate_limiter(rate_limit_per_second)
 for i in iterable:
  throttler()
  (yield i)

def rate_limited_generator ( rate_limit_per_second , iterable ) : throttler = rate_limiter ( rate_limit_per_second ) for i in iterable : throttler ( ) ( yield i )
yield from iterable without going over rate limit .