Added github integration
This commit is contained in:
@@ -0,0 +1 @@
|
||||
pip
|
||||
@@ -0,0 +1,17 @@
|
||||
Copyright by various authors, as noted in the individual source files.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
|
||||
By contributing to this project, you agree to also license your source
|
||||
code under the terms of the Apache License, Version 2.0, as described
|
||||
above.
|
||||
@@ -0,0 +1,67 @@
|
||||
Metadata-Version: 2.1
|
||||
Name: token-bucket
|
||||
Version: 0.3.0
|
||||
Summary: Very fast implementation of the token bucket algorithm.
|
||||
Home-page: https://github.com/falconry/token-bucket
|
||||
Author: kgriffs
|
||||
Author-email: mail@kgriffs.com
|
||||
License: Apache 2.0
|
||||
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 :: 3.5
|
||||
Classifier: Programming Language :: Python :: 3.6
|
||||
Classifier: Programming Language :: Python :: 3.7
|
||||
Classifier: Programming Language :: Python :: 3.8
|
||||
Classifier: Programming Language :: Python :: 3.9
|
||||
Requires-Python: >=3.5
|
||||
License-File: LICENSE
|
||||
|
||||
|Build Status| |PyPi| |codecov.io|
|
||||
|
||||
A Token Bucket Implementation for Python Web Apps
|
||||
=================================================
|
||||
|
||||
The ``token-bucket`` package provides an implementation of the
|
||||
`token bucket algorithm <https://en.wikipedia.org/wiki/Token_bucket>`_
|
||||
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 resistant 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://github.com/falconry/token-bucket/workflows/tests/badge.svg
|
||||
:target: https://github.com/falconry/token-bucket/actions?query=workflow%3A%22tests%22
|
||||
|
||||
.. |PyPi| image:: https://img.shields.io/pypi/v/token-bucket.svg
|
||||
:target: https://pypi.python.org/pypi/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
|
||||
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
token_bucket-0.3.0.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
||||
token_bucket-0.3.0.dist-info/LICENSE,sha256=LZOp0uraJMtDEzjUG7onDQn6Aefz6yX_XglmMvb94VE,745
|
||||
token_bucket-0.3.0.dist-info/METADATA,sha256=f03OiC5r7AxUeKPj3XtW701RhsAMshTnsYmBNlzDusE,2907
|
||||
token_bucket-0.3.0.dist-info/RECORD,,
|
||||
token_bucket-0.3.0.dist-info/WHEEL,sha256=Z-nyYpwrcSqxfdux5Mbn_DQ525iP7J2DG3JgGvOYyTQ,110
|
||||
token_bucket-0.3.0.dist-info/top_level.txt,sha256=NhXGdH_jH4KpgC9DU6CDq1VoU6q3u1zWQaTnyXE2bIo,13
|
||||
token_bucket/__init__.py,sha256=dpJ6_CTQwEcYLjnQGdOqEWTRV3OmOClHP8qrSOwJUXU,431
|
||||
token_bucket/__pycache__/__init__.cpython-311.pyc,,
|
||||
token_bucket/__pycache__/limiter.cpython-311.pyc,,
|
||||
token_bucket/__pycache__/storage.cpython-311.pyc,,
|
||||
token_bucket/__pycache__/storage_base.cpython-311.pyc,,
|
||||
token_bucket/__pycache__/version.cpython-311.pyc,,
|
||||
token_bucket/limiter.py,sha256=6M4SDt72TG5F6-WkraefsqW29vTdk8LIY6aiT1racjM,4882
|
||||
token_bucket/storage.py,sha256=WD4D0Pjs4NsW_RnBvOFNVNfq1KIhKjhB3kcJ5kPc8L8,7909
|
||||
token_bucket/storage_base.py,sha256=bkcijQlcZG0uzMWKhGLuOIBCSI52L1HfGBrjOZk5TTU,2612
|
||||
token_bucket/version.py,sha256=wA-GdQlWVpCqOxqri-gt4UA0KOnMvKLajuT3INCeXcc,85
|
||||
@@ -0,0 +1,6 @@
|
||||
Wheel-Version: 1.0
|
||||
Generator: bdist_wheel (0.36.2)
|
||||
Root-Is-Purelib: true
|
||||
Tag: py2-none-any
|
||||
Tag: py3-none-any
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
token_bucket
|
||||
Reference in New Issue
Block a user