Metadata-Version: 1.1
Name: token_bucket
Version: 0.2.0
Summary: Very fast implementation of the token bucket algorithm.
Home-page: https://github.com/falconry/token-bucket
Author: kgriffs
Author-email: UNKNOWN
License: Apache 2.0
Description: A Token Bucket Implementation for Python Web Apps |Build Status| |codecov.io|
        =============================================================================
        
        The ``token-bucket`` package provides an implementation of the
        `token bucket algorithm <http://falconframework.org/index.html>`_
        suitable for use in web applications for shaping or policing request
        rates. This implementation does not require the use of an independent
        timer thread to manage the bucket state.
        
        Compared to other rate-limiting algorithms that use a simple counter,
        the token bucket algorithm provides the following advantages:
        
        * The thundering herd problem is avoided since bucket capacity is
          replenished gradually, rather than being immediately refilled at the
          beginning of each epoch as is common with simple fixed window
          counters.
        * Burst duration can be explicitly controlled
        
        Moving window algorithms are resitant to bursting, but at the cost of
        additional processing and memory overhead vs. the token bucket
        algorithm which uses a simple, fast counter per key. The latter approach
        does allow for bursting, but only for a controlled duration.
        
        .. |Build Status| image:: https://travis-ci.org/falconry/token-bucket.svg
           :target: https://travis-ci.org/falconry/token-bucket
        .. |codecov.io| image:: https://codecov.io/gh/falconry/token-bucket/branch/master/graph/badge.svg
           :target: https://codecov.io/gh/falconry/token-bucket
        
Keywords: web http https cloud rate limiting token bucket throttling
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Web Environment
Classifier: Natural Language :: English
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: System Administrators
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Software Development :: Libraries
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
