genbtc/trader.python — pull request #6 by jfenton (2013-04-18 20:33:16+00:00)
Title: Decorator for throttling calls (prototype)

So this is an initial attempt at an "onlyevery" decorator, with which you can decorate a function/method, and it will throttle calls to it with configurably delay and blocking/non-blocking (in the latter case, caching) behaviour.

I've added it to lib/common.py but haven't enabled it on any functions yet as it needs some testing.