sftp¶
Strategy class for sftp/ftp
AnyFtpUrl = Annotated[AnyUrl, UrlConstraints(allowed_schemes=['ftp', 'sftp'])]
module-attribute
¶
SFTPConfig
¶
Bases: AttrDict
(S)FTP-specific Configuration Data Model.
Source code in oteapi/strategies/download/sftp.py
20 21 22 23 24 25 26 27 28 29 |
|
datacache_config: Optional[DataCacheConfig] = Field(None, description='Configurations for the data cache for storing the downloaded file content.')
class-attribute
instance-attribute
¶
SFTPContent
¶
Bases: AttrDict
Class for returning values from Download SFTP strategy.
Source code in oteapi/strategies/download/sftp.py
43 44 45 46 |
|
key: str = Field(..., description='Key to access the data in the cache.')
class-attribute
instance-attribute
¶
SFTPResourceConfig
¶
Bases: ResourceConfig
(S)FTP download strategy filter config.
Source code in oteapi/strategies/download/sftp.py
32 33 34 35 36 37 38 39 40 |
|
SFTPStrategy
¶
Strategy for retrieving data via sftp.
Registers strategies:
("scheme", "ftp")
("scheme", "sftp")
Source code in oteapi/strategies/download/sftp.py
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 |
|
download_config: SFTPResourceConfig
instance-attribute
¶
get()
¶
Download via sftp
Source code in oteapi/strategies/download/sftp.py
66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 |
|
initialize()
¶
Initialize.
Source code in oteapi/strategies/download/sftp.py
62 63 64 |
|