Skip to content

Installation

Requirements

  • Python 3.10 or later
  • No external dependencies for core functionality

drogue has zero runtime dependencies for the core rate limiting engine. Framework adapters, storage backends, and observability integrations are installed as optional extras.

Install from PyPI

pip install drogue

Framework extras

pip install drogue[fastapi]   # FastAPI + Starlette
pip install drogue[django]    # Django
pip install drogue[flask]     # Flask
pip install drogue[drf]       # Django REST Framework

Storage extras

pip install drogue[redis]     # Redis backend (redis[hiredis] >= 5.0)

Observability extras

pip install drogue[prometheus]       # Prometheus metrics
pip install drogue[opentelemetry]    # OpenTelemetry tracing
pip install drogue[adaptive]         # CPU/memory adaptive limits (psutil)

Install everything

pip install drogue[all]

Development install

git clone https://github.com/zlynv/drogue.git
cd drogue
pip install -e ".[dev]"

Verify

import drogue
print(drogue.__version__)