ProxyWhirl Docs

Python API Reference

Source-grounded public exports from proxywhirl.__all__.

Generated reference. This page is derived from proxywhirl.__all__, package metadata, and object docstrings during pnpm --dir web run docs:generate. Edit web/scripts/generate-docs.mjs, not this MDX file.

proxywhirl
Package
Version 0.3.3
>=3.10
Python
Supported runtime range
117
Public exports
Entries in proxywhirl.__all__
12
Modules
Top namespaces shown below

Core Surface

ExportKindModuleUse
ProxyWhirlclassproxywhirl.rotator.syncMain class for proxy rotation with automatic failover.
AsyncProxyWhirlclassproxywhirl.rotator.async_Async proxy rotator with automatic failover and intelligent rotation.
Proxyclassproxywhirl.modelsRepresents a single proxy server with connection details and metadata.
ProxyPoolclassproxywhirl.modelsCollection of proxies with management capabilities.
BootstrapConfigclassproxywhirl.modelsConfiguration for the lazy bootstrap that runs on first request when the pool is empty.
ProxyFetcherclassproxywhirl.fetchersFetch and parse proxies from multiple sources with validation and deduplication.
ProxyValidatorclassproxywhirl.fetchersValidate proxy connectivity with detailed metrics and multiple test endpoints.
StrategyRegistryclassproxywhirl.strategiesSingleton registry for custom rotation strategies.
ALL_SOURCESvalueproxywhirlBuilt-in mutable sequence.
RECOMMENDED_SOURCESvalueproxywhirlBuilt-in mutable sequence.

Export Shape

KindCount
class86
function24
value7

Top Namespaces

ModuleExports
proxywhirl.models21
proxywhirl.exceptions18
proxywhirl.strategies14
proxywhirl.utils14
proxywhirl.fetchers8
proxywhirl7
proxywhirl.safe_regex7
proxywhirl.retry6
proxywhirl.rate_limiting4
proxywhirl.circuit_breaker3
proxywhirl.orchestration3
proxywhirl.storage3

All Public Exports

ExportKindModuleSummary
ALL_HTTP_SOURCESvalueproxywhirlBuilt-in mutable sequence.
ALL_SOCKS4_SOURCESvalueproxywhirlBuilt-in mutable sequence.
ALL_SOCKS5_SOURCESvalueproxywhirlBuilt-in mutable sequence.
ALL_SOURCESvalueproxywhirlBuilt-in mutable sequence.
API_SOURCESvalueproxywhirlBuilt-in mutable sequence.
AsyncCircuitBreakerclassproxywhirl.circuit_breakerCircuit breaker for a single proxy in async contexts.
AsyncProxyWhirlclassproxywhirl.rotator.async_Async proxy rotator with automatic failover and intelligent rotation.
AsyncRateLimiterclassproxywhirl.rate_limitingAsync rate limiter for use in async contexts.
BackoffStrategyclassproxywhirl.retryRetry backoff timing strategy.
BootstrapConfigclassproxywhirl.modelsConfiguration for the lazy bootstrap that runs on first request when the pool is empty.
BrowserRenderErrorclassproxywhirl.exceptionsRaised when browser rendering fails (Playwright).
BrowserRendererclassproxywhirl.browserBrowser-based page renderer using Playwright for JavaScript execution.
CSVParserclassproxywhirl.fetchersParse CSV-formatted proxy lists with flexible header handling.
CacheConfigclassproxywhirl.cache.modelsConfiguration for cache behavior and tier settings.
CacheCorruptionErrorclassproxywhirl.exceptionsRaised when cache data is corrupted and cannot be recovered.
CacheManagerclassproxywhirl.cache.managerManages multi-tier caching of proxies with automatic promotion/demotion.
CacheStorageErrorclassproxywhirl.exceptionsRaised when cache storage backend is unavailable.
CacheValidationErrorclassproxywhirl.exceptionsRaised when cache entry fails validation.
CircuitBreakerclassproxywhirl.circuit_breakerCircuit breaker for a single proxy in synchronous contexts.
CircuitBreakerConfigclassproxywhirl.modelsConfiguration for circuit breaker behavior.
CircuitBreakerOpenErrorclassproxywhirl.exceptionsRaised when circuit breaker is in open state.
CircuitBreakerStateclassproxywhirl.circuit_breakerCircuit breaker states.
CompositeStrategyclassproxywhirl.strategiesComposite strategy that applies filtering and selection strategies in sequence.
CostAwareStrategyclassproxywhirl.strategiesCost-aware proxy selection strategy.
DataStorageConfigclassproxywhirl.configConfiguration for what data to persist to the database.
EventLoopConflictErrorclassproxywhirl.exceptionsRaised when there's a conflict between async/sync event loops.
FailoverPolicyclassproxywhirl.orchestrationConfiguration for multi-proxy failover behavior.
FileStorageclassproxywhirl.storageFile-based storage backend using JSON with optional encryption.
GeoTargetedStrategyclassproxywhirl.strategiesGeo-targeted proxy selection strategy.
HTMLTableParserclassproxywhirl.fetchersParse HTML table-formatted proxy lists with flexible column mapping.
HealthMonitorclassproxywhirl.modelsContinuous health monitoring for proxy pools with auto-eviction.
HealthStatusclassproxywhirl.modelsProxy health status states.
JSONParserclassproxywhirl.fetchersParse JSON-formatted proxy lists with optional key extraction.
LeastUsedStrategyclassproxywhirl.strategiesLeast-used proxy selection strategy with SelectionContext support.
NonRetryableErrorclassproxywhirl.retryException that does not trigger a retry.
PerformanceBasedStrategyclassproxywhirl.strategiesPerformance-based proxy selection using EMA response times.
PlainTextParserclassproxywhirl.fetchersParse plain text proxy lists (one proxy per line in IP:PORT format).
PoolSummaryclassproxywhirl.modelsSummary of entire proxy pool.
Proxyclassproxywhirl.modelsRepresents a single proxy server with connection details and metadata.
ProxyAuthenticationErrorclassproxywhirl.exceptionsRaised when proxy authentication fails.
ProxyChainclassproxywhirl.modelsRepresents a chain of proxies for tunneling requests.
ProxyConfigurationclassproxywhirl.settingsGlobal runtime configuration for proxy rotation.
ProxyConnectionErrorclassproxywhirl.exceptionsRaised when unable to connect through a proxy.
ProxyCredentialsclassproxywhirl.modelsSecure credential storage for proxy authentication.
ProxyErrorCodeclassproxywhirl.exceptionsError codes for programmatic error handling.
ProxyFetcherclassproxywhirl.fetchersFetch and parse proxies from multiple sources with validation and deduplication.
ProxyFetchErrorclassproxywhirl.exceptionsRaised when fetching proxies from external sources fails.
ProxyFormatclassproxywhirl.modelsSupported proxy list formats.
ProxyMetricsclassproxywhirl.strategiesPer-proxy mutable metrics maintained by a strategy.
ProxyPoolclassproxywhirl.modelsCollection of proxies with management capabilities.
ProxyPoolEmptyErrorclassproxywhirl.exceptionsRaised when attempting to select from an empty proxy pool.
ProxyRotationContextclassproxywhirl.orchestrationMutable context for a single request's proxy rotation lifecycle.
ProxySourceclassproxywhirl.modelsOrigin type of proxy.
ProxySourceConfigclassproxywhirl.modelsConfiguration for a proxy list source.
ProxySourceUnavailableErrorclassproxywhirl.exceptionsRaised when a proxy source is temporarily or permanently unavailable.
ProxyStatusclassproxywhirl.modelsStatus of a single proxy in the pool.
ProxyStorageErrorclassproxywhirl.exceptionsRaised when proxy storage operations fail.
ProxyValidationErrorclassproxywhirl.exceptionsRaised when proxy URL or configuration is invalid.
ProxyValidatorclassproxywhirl.fetchersValidate proxy connectivity with detailed metrics and multiple test endpoints.
ProxyWhirlclassproxywhirl.rotator.syncMain class for proxy rotation with automatic failover.
ProxyWhirlErrorclassproxywhirl.exceptionsBase exception for all ProxyWhirl errors.
RECOMMENDED_SOURCESvalueproxywhirlBuilt-in mutable sequence.
RandomStrategyclassproxywhirl.strategiesRandom proxy selection strategy with SelectionContext support.
RateLimitclassproxywhirl.rate_limitingRate limit configuration.
RateLimitEventclassproxywhirl.rate_limitingRate limit event for logging.
RateLimitExceededErrorclassproxywhirl.exceptionsRaised when rate limit is exceeded.
RateLimiterclassproxywhirl.rate_limitingRate limiter with per-proxy and global token-bucket limits.
RegexComplexityErrorclassproxywhirl.safe_regexRaised when regex pattern is too complex or dangerous.
RegexTimeoutErrorclassproxywhirl.safe_regexRaised when regex compilation or matching exceeds timeout.
RenderModeclassproxywhirl.modelsPage rendering modes for fetching proxy lists.
RequestOrchestrationclassproxywhirl.orchestrationOrchestrates proxy selection, inner retries, and optional outer failover.
RequestQueueFullErrorclassproxywhirl.exceptionsRaised when the request queue is full and cannot accept more requests.
RequestResultclassproxywhirl.modelsResult of HTTP request made through proxy.
RetryExecutorclassproxywhirl.retryOrchestrates retry logic with exponential backoff and circuit breaker integration.
RetryMetricsclassproxywhirl.retryAggregated retry metrics collection.
RetryPolicyclassproxywhirl.retryConfiguration for retry behavior.
RetryableErrorclassproxywhirl.retryException that triggers a retry.
RotationStrategyclassproxywhirl.strategiesProtocol defining interface for proxy rotation strategies.
RoundRobinStrategyclassproxywhirl.strategiesRound-robin proxy selection strategy with SelectionContext support.
SQLiteStorageclassproxywhirl.storageSQLite-based storage backend with normalized 3-table schema.
SelectionContextclassproxywhirl.modelsContext information for proxy selection decisions.
Sessionclassproxywhirl.modelsSession tracking for sticky proxy assignments.
SessionManagerclassproxywhirl.strategiesThread-safe session manager for sticky proxy assignments.
SessionPersistenceStrategyclassproxywhirl.strategiesSession persistence strategy (sticky sessions).
SourceStatsclassproxywhirl.modelsStatistics for a proxy source.
StorageBackendclassproxywhirl.modelsProtocol for proxy storage backends.
StrategyConfigclassproxywhirl.modelsConfiguration for rotation strategies.
StrategyRegistryclassproxywhirl.strategiesSingleton registry for custom rotation strategies.
StrategyStateclassproxywhirl.strategiesPer-strategy mutable state for managing proxy metrics.
ValidationLevelclassproxywhirl.modelsProxy validation strictness levels.
ValidationResultclassproxywhirl.fetchersResult of proxy validation with timing metrics.
WeightedStrategyclassproxywhirl.strategiesWeighted proxy selection strategy with SelectionContext support.
__version__valueproxywhirlstr(object='') -> str
configure_loggingfunctionproxywhirl.utilsConfigure loguru logging with optional JSON formatting and credential redaction.
create_proxy_from_urlfunctionproxywhirl.utilsCreate a Proxy instance from a URL string.
deduplicate_proxiesfunctionproxywhirl.fetchersDeduplicate proxies by URL+Port combination.
decrypt_credentialsfunctionproxywhirl.utilsDecrypt credentials using Fernet symmetric encryption.
dict_to_proxyfunctionproxywhirl.storageConvert a storage row dictionary to a :class:~proxywhirl.models.Proxy.
encrypt_credentialsfunctionproxywhirl.utilsEncrypt credentials using Fernet symmetric encryption.
generate_encryption_keyfunctionproxywhirl.utilsGenerate a new Fernet encryption key.
is_valid_proxy_urlfunctionproxywhirl.utilsValidate proxy URL format with caching.
mask_proxy_urlfunctionproxywhirl.utilsMask credentials in a proxy URL for safe display in verbose/debug output.
mask_secret_strfunctionproxywhirl.utilsMask a SecretStr or string value for safe display.
parse_proxy_urlfunctionproxywhirl.utilsParse proxy URL into components with LRU cache.
proxy_to_dictfunctionproxywhirl.utilsConvert a Proxy instance to a dictionary.
public_proxy_urlfunctionproxywhirl.utilsReturn a proxy URL safe for public API, CLI, and MCP output.
redact_urlfunctionproxywhirl.exceptionsRedact sensitive information from a URL.
safe_regex_compilefunctionproxywhirl.safe_regexSafely compile a regex pattern with timeout protection.
safe_regex_findallfunctionproxywhirl.safe_regexSafely find all matches of a regex pattern in text with timeout protection.
safe_regex_matchfunctionproxywhirl.safe_regexSafely match a regex pattern against text with timeout protection.
safe_regex_searchfunctionproxywhirl.safe_regexSafely search for a regex pattern in text with timeout protection.
scrub_credentials_from_dictfunctionproxywhirl.utilsRecursively scrub credentials from a dictionary for safe output.
validate_proxy_modelfunctionproxywhirl.utilsValidate a Proxy model instance.
validate_regex_patternfunctionproxywhirl.safe_regexValidate a regex pattern for safety.
validate_sourcesfunctionproxywhirl.sourcesValidate multiple proxy sources concurrently.
validate_sources_syncfunctionproxywhirl.sourcesSynchronous wrapper for validate_sources.
validate_target_url_safefunctionproxywhirl.utilsValidate a target URL to prevent SSRF attacks (API-safe version).

On this page