https¶
Download strategy class for http/https
HTTPDownloadContent
¶
Bases: AttrDict
Class for returning values from Download HTTPS strategy.
Source code in oteapi/strategies/download/https.py
36 37 38 39 |
|
key: str = Field(..., description='Key to access the data in the cache.')
class-attribute
instance-attribute
¶
HTTPSConfig
¶
Bases: AttrDict
HTTP(S)-specific Configuration Data Model.
Source code in oteapi/strategies/download/https.py
13 14 15 16 17 18 19 20 21 22 |
|
datacache_config: Optional[DataCacheConfig] = Field(None, description='Configurations for the data cache for storing the downloaded file content.')
class-attribute
instance-attribute
¶
HTTPSResourceConfig
¶
Bases: ResourceConfig
HTTP(S) download strategy filter config.
Source code in oteapi/strategies/download/https.py
25 26 27 28 29 30 31 32 33 |
|
HTTPSStrategy
¶
Strategy for retrieving data via http.
Registers strategies:
("scheme", "http")
("scheme", "https")
Source code in oteapi/strategies/download/https.py
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
|
download_config: HTTPSResourceConfig
instance-attribute
¶
get()
¶
Download via http/https and store on local cache.
Source code in oteapi/strategies/download/https.py
59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
|
initialize()
¶
Initialize.
Source code in oteapi/strategies/download/https.py
55 56 57 |
|