Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

DEML Rate Limit

Dragonfly/Redis sliding window rate limiting with security-focused COGS optimization.

Installation

pip install deml-rate-limit

Usage

import redis
from deml_rate_limit import check_rate_limit, RateLimitError

client = redis.Redis.from_url("redis://localhost:6379")

# Check rate limit
allowed, count, window = check_rate_limit("user:123", client, quota=100)
if not allowed:
    raise RateLimitError("Rate limit exceeded")

Features

  • Sliding window algorithm
  • Automatic cleanup of expired entries
  • UUIDsafe keys for multi-tenant systems

Metadata

Release files for deml-rate-limit 0.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 deml-rate-limit 0.1.0
File Size Uploaded Provenance Actions
deml_rate_limit-0.1.0.tar.gz 3.4 kB Without provenance Details for deml_rate_limit-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for deml-rate-limit 0.1.0
File Interpreter ABI Platform Actions
deml_rate_limit-0.1.0-py3-none-any.whl Python 3 none any Details for deml_rate_limit-0.1.0-py3-none-any.whl

Total release size: 6.6 kB

Release files / deml_rate_limit-0.1.0.tar.gz

Download URL deml_rate_limit-0.1.0.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
342a578a0472213c261513c67ca7f24d5b537ea1477ea0ca24fa02475fd3b166
BLAKE2b-256 checksum
How to use checksums
8905d09f6158b7a83b8171bafc35ec1c2bf17a14033c5c5d60850d0594d46eff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / deml_rate_limit-0.1.0-py3-none-any.whl

Download URL deml_rate_limit-0.1.0-py3-none-any.whl
Size 3.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ff2efc84bcffe27d5dbeec54eb2a12b314111eaccfc0ecddeeb8915aa658fba0
BLAKE2b-256 checksum
How to use checksums
67609021cdb7b2a2ed5870b8665ec515fe92ffa3b2e8b3d105055b00bcd8a968
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for deml-rate-limit 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
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