| | ASPN : Python Cookbook : Implementation of the token bucket algorithm (Site not responding. Last check: 2007-10-28) |
 | | An implementation of the token bucket algorithm in Python. |
 | | The token bucket algorithm is a very simple (and thus, hopefully I haven't screwed up this implementation) but useful method of rate limiting. |
 | | The algorithm consists of a bucket with a maximum capacity of N tokens which refills at a rate R tokens per second. |
| aspn.activestate.com /ASPN/Cookbook/Python/Recipe/511490 (179 words) |