Module Import alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad vararg body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr With AttributeLoad NameLoad attr body AugAssignAdd AttributeStore NameLoad attr Num Assign NameStore NameLoad TryFinally body TryExcept body Return IfExp NameLoad Call NameLoad NameLoad NameLoad handlers ExceptHandler body Assign NameStore NameLoad Raise finalbody With AttributeLoad NameLoad attr body If UnaryOpNot AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AugAssignSub AttributeStore NameLoad attr Num AugAssignAdd AttributeStore NameLoad attr Num If NameLoad body AugAssignAdd AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str While Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Pass decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr For NameStore Call NameLoad BinOpSub AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str With AttributeLoad NameLoad attr body If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body With AttributeLoad NameLoad attr body AugAssignSub AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str With AttributeLoad NameLoad attr body Return TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults vararg body Expr Str Assign AttributeStore NameLoad attr ListLoad For NameStore NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad vararg body Expr Str Expr Call AttributeLoad NameLoad attr Assign NameStore NameLoad TryFinally body TryExcept body Return IfExp NameLoad Call NameLoad NameLoad NameLoad handlers ExceptHandler body Assign NameStore NameLoad Raise finalbody For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Return AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr handlers ExceptHandler type NameLoad body Return Num decorator_list NameLoad decorator_list
N/A N/A threading SingleRateLimiter N/A object N/A N/A 
    Handles a single rate limit, ensuring that calls don't exceed it
     __init__ N/A N/A self calls_per_epoch seconds_per_epoch N/A N/A N/A 
        Handles a single rate limit, ensuring that calls don't exceed it
         N/A N/A self seconds_per_epoch seconds_per_epoch N/A N/A self semaphore N/A N/A threading Semaphore calls_per_epoch N/A N/A self lock N/A N/A threading Lock N/A N/A self current 0 N/A N/A self limit calls_per_epoch N/A N/A self resetter None N/A N/A self _total_calls 0 N/A N/A self _successful_calls 0 N/A call N/A N/A self method N/A None args N/A N/A 
        Args:
            calls_per_epoch (int): the number of calls allowed in each epoch
            seconds_per_epoch (int): the number of seconds per epoch
         N/A N/A N/A N/A self semaphore acquire N/A N/A self lock N/A N/A N/A self current 1 N/A successful_call True N/A N/A N/A N/A N/A N/A method N/A method args None N/A N/A N/A N/A successful_call False N/A N/A N/A N/A self lock N/A N/A N/A N/A self resetter N/A N/A N/A self resetter N/A N/A threading Timer N/A self seconds_per_epoch N/A self _reset N/A N/A N/A self resetter daemon True N/A N/A N/A N/A self resetter start N/A N/A self current 1 N/A N/A self _total_calls 1 N/A successful_call N/A N/A N/A self _successful_calls 1 N/A _drain N/A N/A self N/A N/A N/A 
        Calls a function when the rate limit allows (first come first serve)

        Args:
            method (function): the function which will be called when the rate limit allows
            *args (any...): the arguments to be passed to the functions when it is called

        Returns:
            any: the result of the function once it has been called
         N/A N/A N/A N/A self semaphore acquire False N/A N/A N/A _reset N/A N/A self N/A N/A N/A 
        Calls a function when the rate limit allows (first come first serve)

        Args:
            method (function): the function which will be called when the rate limit allows
            *args (any...): the arguments to be passed to the functions when it is called

        Returns:
            any: the result of the function once it has been called
         N/A N/A N/A N/A self lock acquire N/A N/A N/A self _drain N/A _ N/A range N/A N/A self limit N/A self current N/A N/A N/A N/A N/A self semaphore release N/A N/A self resetter None N/A N/A N/A N/A self lock release N/A wait N/A N/A self N/A N/A N/A 
        Calls a function when the rate limit allows (first come first serve)

        Args:
            method (function): the function which will be called when the rate limit allows
            *args (any...): the arguments to be passed to the functions when it is called

        Returns:
            any: the result of the function once it has been called
         N/A N/A N/A N/A self semaphore acquire N/A N/A N/A N/A self semaphore release N/A reset_in N/A N/A self seconds N/A N/A N/A 
        Calls a function when the rate limit allows (first come first serve)

        Args:
            method (function): the function which will be called when the rate limit allows
            *args (any...): the arguments to be passed to the functions when it is called

        Returns:
            any: the result of the function once it has been called
         N/A N/A self lock N/A N/A N/A self resetter N/A N/A N/A N/A N/A self resetter cancel N/A N/A N/A self _drain N/A N/A self resetter N/A N/A threading Timer seconds N/A self _reset N/A N/A N/A self resetter daemon True N/A N/A N/A N/A self resetter start N/A _decrease_successful_calls N/A N/A self N/A N/A N/A N/A self lock N/A N/A N/A self _successful_calls 1 N/A calls N/A N/A self N/A N/A N/A 
        Drains all remaining calls
         N/A N/A self lock N/A N/A N/A N/A self _successful_calls N/A self _total_calls N/A property N/A MultiRateLimiter N/A object N/A N/A 
    Resets the rate limit
     __init__ N/A N/A self N/A limits N/A N/A 
        Resets the rate limit
         N/A N/A self limits N/A N/A limit limits N/A N/A N/A N/A N/A self limits append N/A SingleRateLimiter N/A limit N/A 0 N/A limit N/A 1 N/A call N/A N/A self method N/A None args N/A N/A 
        Waits until a call becomes available
         N/A N/A N/A self wait N/A successful_call True N/A N/A N/A N/A N/A N/A method N/A method args None N/A N/A N/A N/A successful_call False N/A N/A N/A limit N/A self limits N/A N/A N/A N/A limit call N/A N/A successful_call N/A N/A N/A N/A limit _decrease_successful_calls N/A wait N/A N/A self N/A N/A N/A 
        Resets the rate limiter after waiting

        Args:
            seconds (int): the number of seconds to wait before resetting
         N/A limit N/A self limits N/A N/A N/A N/A limit wait N/A reset_in N/A N/A self seconds N/A N/A N/A 
        Resets the rate limiter after waiting

        Args:
            seconds (int): the number of seconds to wait before resetting
         N/A limit N/A self limits N/A N/A N/A N/A limit reset_in seconds N/A calls N/A N/A self N/A N/A N/A 
        Returns the number of successful calls (no exceptions in the call) and total calls served by this limiter

        Returns:
            return: tuple   A (successful calls, total calls) tuple
         N/A N/A N/A N/A N/A N/A self limits N/A 0 calls N/A N/A N/A IndexError N/A N/A 0 N/A property N/A