DownloadPolicy#
- class scikitplot.corpus.DownloadPolicy(name='secure', timeout=30.0, max_bytes=104857600, verify_ssl=True, block_private_ips=True, max_redirects=5, user_agent='Mozilla/5.0 (compatible; scikitplot-corpus/1.0; +https://github.com/scikit-plots/scikit-plots)', max_retries=3, retry_backoff=1.0)[source]#
Transport/resource policy shared by Corpus downloaders.
This object intentionally contains no credentials, headers or destination paths, so it is safe to serialize in plans and diagnostics.
- Parameters:
- classmethod from_config(config)[source]#
Build from JSON/YAML-shaped configuration with typo rejection.
- Parameters:
- Return type:
- classmethod large_files()[source]#
Allow large transfers without relaxing TLS or SSRF protections.
- Return type: