Skip to main content

sliding-rate-limiter

https://img.shields.io/pypi/v/sliding_rate_limiter.svg https://img.shields.io/travis/kalibrr/sliding_rate_limiter.svg Documentation Status Updates

Sliding rate limiter using memory or a distributed Redis backend.

Features

  • Pluggable rate limiting backend (threadsafe in-memory or distributed Redis backend)

Usage

from sliding_rate_limiter.region import RateLimiterRegion
from sliding_rate_limiter.backends.memory import MemoryBackend

region = RateLimiterRegion('default')
region.configure(MemoryBackend())

@region.rate_limit_on_arguments()
def foo(user_id):
    pass

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

API heavily inspired by dogpile.cache

History

0.1.0 (2018-05-10)

  • First release on PyPI.

Release files for sliding-rate-limiter 2.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sliding-rate-limiter 2.1.0
File Size Uploaded
sliding_rate_limiter-2.1.0.tar.gz 13.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sliding-rate-limiter 2.1.0
File Interpreter ABI Platform
sliding_rate_limiter-2.1.0-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 21.9 kB

Release files / sliding_rate_limiter-2.1.0.tar.gz

Download URL sliding_rate_limiter-2.1.0.tar.gz
Size 13.1 kB
Tags Source
SHA-256 checksum
How to use checksums
a29035d1e3f6f578b7294faddaafeef107dc3e7f0103e80fcffa380f95f772cd
BLAKE2b-256 checksum
How to use checksums
58747076880cc78a6ea78849d7307a44efbe21a164970740ed9a53eca2dc1ed7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / sliding_rate_limiter-2.1.0-py2.py3-none-any.whl

Download URL sliding_rate_limiter-2.1.0-py2.py3-none-any.whl
Size 8.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
f0d502ed56a7abaefe86c689e0cf33def104d9f0d611b46cebf61eb1222e1dc8
BLAKE2b-256 checksum
How to use checksums
63f88db56e6ff4e55be2243d03eb89cc7de3ccbfdbeaabec70c81f02bd30a2c1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

2.1.0 This release

2 release files

2.0.0

2 release files

1.1.0

2 release files

1.0.0

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page