Skip to main content

🛡️ Aegis

Production-grade distributed rate limiting for Python powered by Redis and Lua.

Installation

pip install aegis-rl

Quick Start

from aegis import Aegis
from aegis.backends import RedisBackend

backend = RedisBackend()

limiter = Aegis(
    backend=backend,
    algorithm="fixed_window",
    limit=100,
    window_size=60,
)

limiter.allow("user123")

Supported Algorithms

  • Fixed Window
  • Sliding Window Log
  • Token Bucket
  • Leaky Bucket

Features

  • Redis Lua Scripts
  • Atomic Operations
  • Race-condition safe
  • In-memory backend
  • Redis backend
  • Python SDK

Documentation

See the GitHub repository for full documentation.

Metadata

Release files for aegis-rl 0.1.1

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

Source distribution (sdist)

Source distribution for aegis-rl 0.1.1
File Size Uploaded Provenance Actions
aegis_rl-0.1.1.tar.gz 10.3 kB Without provenance Details for aegis_rl-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for aegis-rl 0.1.1
File Interpreter ABI Platform Actions
aegis_rl-0.1.1-py3-none-any.whl Python 3 none any Details for aegis_rl-0.1.1-py3-none-any.whl

Total release size: 23.2 kB

Release files / aegis_rl-0.1.1.tar.gz

Download URL aegis_rl-0.1.1.tar.gz
Size 10.3 kB
Tags Source
SHA-256 checksum
How to use checksums
3d231b1faf93cee0034e16ab8f3566628bdc3878d9abd654cc5d2132d232bba5
BLAKE2b-256 checksum
How to use checksums
8d95afc562e8407e572c4a8679f8ac0e256acf84622f3ecbe0528adaf942ec3d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / aegis_rl-0.1.1-py3-none-any.whl

Download URL aegis_rl-0.1.1-py3-none-any.whl
Size 12.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b92215cd9d7e77d77d12c413beb6ce766e7860f4076f5259432583328cd45813
BLAKE2b-256 checksum
How to use checksums
7da4083c1307e7fe001d68961c8878722fbd98f954bead70c1900420f60fff36
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Security for aegis-rl 0.1.1

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

0.1.1 This release

2 release files No provenance

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