Package biblio :: Package webquery :: Module querythrottle
[hide private]
[frames] | no frames]

Module querythrottle

source code

Classes for throttling web-queries, so as to stay within limits.
Classes [hide private]
  BaseQueryThrottle
A limit upon query usage.
  WaitNSecondsThrottle
Limit a query to every N seconds at most.
  WaitOneSecondThrottle
Limit a query to once every second at most.
  AbsoluteNumberThrottle
Limit a query to a maximum number.
  Max500Throttle
Limit a query to 500 attempts at most.
Functions [hide private]
 
_doctest() source code
Variables [hide private]
  FAIL_AND_RAISE = 'RAISE'
  FAIL_AND_WAIT = 'WAIT'