pyrate_limiter.utils module#
- pyrate_limiter.utils.binary_search(items, value)#
Find the index of item in list where left.timestamp < value <= right.timestamp this is to determine the current size of some window that stretches from now back to lower-boundary = value and
- Return type
- pyrate_limiter.utils.dedicated_sqlite_clock_connection()#
- pyrate_limiter.utils.id_generator(size=6, chars='ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz')#
- Return type