second commit
This commit is contained in:
24
env/lib/python3.11/site-packages/ratelimit/__init__.py
vendored
Normal file
24
env/lib/python3.11/site-packages/ratelimit/__init__.py
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
'''
|
||||
Function decorator for rate limiting
|
||||
|
||||
This module provides a functon decorator that can be used to wrap a function
|
||||
such that it will raise an exception if the number of calls to that function
|
||||
exceeds a maximum within a specified time window.
|
||||
|
||||
For examples and full documentation see the README at
|
||||
https://github.com/tomasbasham/ratelimt
|
||||
'''
|
||||
from ratelimit.decorators import RateLimitDecorator, sleep_and_retry
|
||||
from ratelimit.exception import RateLimitException
|
||||
|
||||
limits = RateLimitDecorator
|
||||
rate_limited = RateLimitDecorator # For backwards compatibility
|
||||
|
||||
__all__ = [
|
||||
'RateLimitException',
|
||||
'limits',
|
||||
'rate_limited',
|
||||
'sleep_and_retry'
|
||||
]
|
||||
|
||||
__version__ = '2.2.1'
|
Reference in New Issue
Block a user