koder aka kdanilov | 22d134e | 2016-11-08 11:33:19 +0200 | [diff] [blame] | 1 | from io import BytesIO |
| 2 | from typing import Any, Tuple |
| 3 | |
| 4 | |
| 5 | __version_info__ = None # type: Tuple[int, int, int] |
| 6 | |
| 7 | |
| 8 | class PasswordRequiredException(Exception): |
| 9 | pass |
| 10 | |
| 11 | |
| 12 | class SSHException(Exception): |
| 13 | pass |
| 14 | |
| 15 | |
| 16 | class RSAKey: |
| 17 | @classmethod |
koder aka kdanilov | 23e6bdf | 2016-12-24 02:18:54 +0200 | [diff] [blame^] | 18 | def from_private_key(cls, data: BytesIO, password: str = None) -> 'RSAKey': ... |
| 19 | |
| 20 | @classmethod |
| 21 | def from_private_key_file(cls, fname: str, password: str = None) -> 'RSAKey': ... |
koder aka kdanilov | 22d134e | 2016-11-08 11:33:19 +0200 | [diff] [blame] | 22 | |
| 23 | |
| 24 | |
| 25 | class AutoAddPolicy: |
| 26 | pass |
| 27 | |
| 28 | |
| 29 | class SSHClient: |
| 30 | def __init__(self) -> None: |
| 31 | self.known_hosts = None # type: Any |
| 32 | |
| 33 | def load_host_keys(self, path: str) -> None: ... |
| 34 | def set_missing_host_key_policy(self, policy: AutoAddPolicy) -> None: ... |
| 35 | def connect(self, *args: Any, **kwargs: Any): ... |
| 36 | def get_transport(self) -> Any: ... |
| 37 | def open_sftp(self) -> Any: ... |