Authoritative resources for the runtime APIs, configuration knobs, and public data models.
Reference¶
Quick Lookup¶
Interface |
Entry Point |
Docs |
|---|---|---|
Python sync |
|
|
Python async |
|
|
REST API |
|
|
CLI |
|
|
MCP |
|
Task |
Where to Look |
|---|---|
Configure rotation strategy |
Configuration – |
Handle errors |
Exceptions – error codes and hierarchy |
Set up caching |
Cache API – |
Rate limit requests |
Rate Limiting API – token bucket setup |
Set up authentication |
REST API – API key configuration |
Tune retry behavior |
Retry & Failover – |
Class |
Module |
Docs |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
API Surfaces¶
Complete REST endpoint documentation with examples, error codes, and deployment guides.
Starting the server – dev mode, production, Docker
Authentication – API key setup
Rotation endpoints – GET/PUT config, strategy context
Pool management – CRUD proxies, health checks
Proxied requests – POST requests through rotating proxies
Core classes, strategies, models, and utility functions.
ProxyWhirl – sync client with context manager
AsyncProxyWhirl – async client, connection pooling
Rotation strategies – all 9 strategy classes
ProxyFetcher & Validator – fetch, validate, enrich
BrowserRenderer – Playwright JS-rendered sources
Configuration & Error Handling¶
TOML configuration reference with all options and environment variables.
Configuration discovery – auto-detect paths
TOML format – complete annotated example
File locations – pyproject.toml, standalone, explicit path
Environment variables –
PROXYWHIRL_*overrides
Error handling, exception hierarchy, and error codes.
Exception hierarchy – tree of all exception types
Error codes –
ProxyErrorCodeenum valuesURL redaction –
redact_url()for safe loggingPer-exception reference – when raised, attributes, resolution
Subsystem APIs¶
Multi-tier caching system with L1/L2/L3 storage, TTL management, and health-based invalidation.
Data models –
CacheEntry,CacheConfig,CacheStatisticsCacheEntry fields – key, value, TTL, tier, health status
CacheConfig options – per-tier settings, encryption
CacheTierConfig – max size, TTL, promotion rules
Per-proxy and global rate limiting with token bucket algorithm.
RateLimiter – constructor, global vs per-proxy limits
SyncRateLimiter – sync per-proxy configuration
AsyncRateLimiter – async token bucket check
Overview – architecture and algorithm details
Database & Migrations¶
Alembic-based database migrations for SQLite schema management.
Quick start – initialize and run migrations
Programmatic API – library-first migration control
Schema versioning – track and roll back schema changes
Related: Guides for usage guides | Getting Started for quickstart | Project for contributing