Coverage for /pythoncovmergedfiles/medio/medio/src/paramiko/paramiko/__init__.py: 100%

34 statements  

« prev     ^ index     » next       coverage.py v7.2.2, created at 2023-03-26 06:36 +0000

1# Copyright (C) 2003-2011 Robey Pointer <robeypointer@gmail.com> 

2# 

3# This file is part of paramiko. 

4# 

5# Paramiko is free software; you can redistribute it and/or modify it under the 

6# terms of the GNU Lesser General Public License as published by the Free 

7# Software Foundation; either version 2.1 of the License, or (at your option) 

8# any later version. 

9# 

10# Paramiko is distributed in the hope that it will be useful, but WITHOUT ANY 

11# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR 

12# A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 

13# details. 

14# 

15# You should have received a copy of the GNU Lesser General Public License 

16# along with Paramiko; if not, write to the Free Software Foundation, Inc., 

17# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 

18 

19# flake8: noqa 

20import sys 

21from paramiko._version import __version__, __version_info__ 

22from paramiko.transport import SecurityOptions, Transport 

23from paramiko.client import ( 

24 SSHClient, 

25 MissingHostKeyPolicy, 

26 AutoAddPolicy, 

27 RejectPolicy, 

28 WarningPolicy, 

29) 

30from paramiko.auth_handler import AuthHandler 

31from paramiko.ssh_gss import GSSAuth, GSS_AUTH_AVAILABLE, GSS_EXCEPTIONS 

32from paramiko.channel import ( 

33 Channel, 

34 ChannelFile, 

35 ChannelStderrFile, 

36 ChannelStdinFile, 

37) 

38from paramiko.ssh_exception import ( 

39 AuthenticationException, 

40 BadAuthenticationType, 

41 BadHostKeyException, 

42 ChannelException, 

43 ConfigParseError, 

44 CouldNotCanonicalize, 

45 IncompatiblePeer, 

46 PasswordRequiredException, 

47 ProxyCommandFailure, 

48 SSHException, 

49) 

50from paramiko.server import ServerInterface, SubsystemHandler, InteractiveQuery 

51from paramiko.rsakey import RSAKey 

52from paramiko.dsskey import DSSKey 

53from paramiko.ecdsakey import ECDSAKey 

54from paramiko.ed25519key import Ed25519Key 

55from paramiko.sftp import SFTPError, BaseSFTP 

56from paramiko.sftp_client import SFTP, SFTPClient 

57from paramiko.sftp_server import SFTPServer 

58from paramiko.sftp_attr import SFTPAttributes 

59from paramiko.sftp_handle import SFTPHandle 

60from paramiko.sftp_si import SFTPServerInterface 

61from paramiko.sftp_file import SFTPFile 

62from paramiko.message import Message 

63from paramiko.packet import Packetizer 

64from paramiko.file import BufferedFile 

65from paramiko.agent import Agent, AgentKey 

66from paramiko.pkey import PKey, PublicBlob 

67from paramiko.hostkeys import HostKeys 

68from paramiko.config import SSHConfig, SSHConfigDict 

69from paramiko.proxy import ProxyCommand 

70 

71from paramiko.common import ( 

72 AUTH_SUCCESSFUL, 

73 AUTH_PARTIALLY_SUCCESSFUL, 

74 AUTH_FAILED, 

75 OPEN_SUCCEEDED, 

76 OPEN_FAILED_ADMINISTRATIVELY_PROHIBITED, 

77 OPEN_FAILED_CONNECT_FAILED, 

78 OPEN_FAILED_UNKNOWN_CHANNEL_TYPE, 

79 OPEN_FAILED_RESOURCE_SHORTAGE, 

80) 

81 

82from paramiko.sftp import ( 

83 SFTP_OK, 

84 SFTP_EOF, 

85 SFTP_NO_SUCH_FILE, 

86 SFTP_PERMISSION_DENIED, 

87 SFTP_FAILURE, 

88 SFTP_BAD_MESSAGE, 

89 SFTP_NO_CONNECTION, 

90 SFTP_CONNECTION_LOST, 

91 SFTP_OP_UNSUPPORTED, 

92) 

93 

94from paramiko.common import io_sleep 

95 

96 

97__author__ = "Jeff Forcier <jeff@bitprophet.org>" 

98__license__ = "GNU Lesser General Public License (LGPL)" 

99 

100__all__ = [ 

101 "Agent", 

102 "AgentKey", 

103 "AuthenticationException", 

104 "AutoAddPolicy", 

105 "BadAuthenticationType", 

106 "BadHostKeyException", 

107 "BufferedFile", 

108 "Channel", 

109 "ChannelException", 

110 "ConfigParseError", 

111 "CouldNotCanonicalize", 

112 "DSSKey", 

113 "ECDSAKey", 

114 "Ed25519Key", 

115 "HostKeys", 

116 "Message", 

117 "MissingHostKeyPolicy", 

118 "PKey", 

119 "PasswordRequiredException", 

120 "ProxyCommand", 

121 "ProxyCommandFailure", 

122 "RSAKey", 

123 "RejectPolicy", 

124 "SFTP", 

125 "SFTPAttributes", 

126 "SFTPClient", 

127 "SFTPError", 

128 "SFTPFile", 

129 "SFTPHandle", 

130 "SFTPServer", 

131 "SFTPServerInterface", 

132 "SSHClient", 

133 "SSHConfig", 

134 "SSHConfigDict", 

135 "SSHException", 

136 "SecurityOptions", 

137 "ServerInterface", 

138 "SubsystemHandler", 

139 "Transport", 

140 "WarningPolicy", 

141 "io_sleep", 

142 "util", 

143]