Coverage for /pythoncovmergedfiles/medio/medio/src/paramiko/paramiko/__init__.py: 97%
Shortcuts on this page
r m x toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
Shortcuts on this page
r m x toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
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.
19from importlib import metadata
21__version__ = metadata.version("paramiko")
23# flake8: noqa
24from paramiko.transport import (
25 SecurityOptions,
26 ServiceRequestingTransport,
27 Transport,
28)
29from paramiko.client import (
30 AutoAddPolicy,
31 MissingHostKeyPolicy,
32 RejectPolicy,
33 SSHClient,
34 WarningPolicy,
35)
36from paramiko.auth_handler import AuthHandler
37from paramiko.auth_strategy import (
38 AuthFailure,
39 AuthStrategy,
40 AuthResult,
41 AuthSource,
42 InMemoryPrivateKey,
43 NoneAuth,
44 OnDiskPrivateKey,
45 Password,
46 PrivateKey,
47 SourceResult,
48)
49from paramiko.channel import (
50 Channel,
51 ChannelFile,
52 ChannelStderrFile,
53 ChannelStdinFile,
54)
55from paramiko.ssh_exception import (
56 AuthenticationException,
57 BadAuthenticationType,
58 BadHostKeyException,
59 ChannelException,
60 ConfigParseError,
61 CouldNotCanonicalize,
62 IncompatiblePeer,
63 MessageOrderError,
64 PasswordRequiredException,
65 ProxyCommandFailure,
66 SSHException,
67)
68from paramiko.server import ServerInterface, SubsystemHandler, InteractiveQuery
69from paramiko.rsakey import RSAKey
70from paramiko.ecdsakey import ECDSAKey
71from paramiko.ed25519key import Ed25519Key
72from paramiko.sftp import SFTPError, BaseSFTP
73from paramiko.sftp_client import SFTP, SFTPClient
74from paramiko.sftp_server import SFTPServer
75from paramiko.sftp_attr import SFTPAttributes
76from paramiko.sftp_handle import SFTPHandle
77from paramiko.sftp_si import SFTPServerInterface
78from paramiko.sftp_file import SFTPFile
79from paramiko.message import Message
80from paramiko.packet import Packetizer
81from paramiko.file import BufferedFile
82from paramiko.agent import Agent, AgentKey
83from paramiko.pkey import PKey, PublicBlob, UnknownKeyType
84from paramiko.hostkeys import HostKeys
85from paramiko.config import SSHConfig, SSHConfigDict
86from paramiko.proxy import ProxyCommand
88from paramiko.common import (
89 AUTH_SUCCESSFUL,
90 AUTH_PARTIALLY_SUCCESSFUL,
91 AUTH_FAILED,
92 OPEN_SUCCEEDED,
93 OPEN_FAILED_ADMINISTRATIVELY_PROHIBITED,
94 OPEN_FAILED_CONNECT_FAILED,
95 OPEN_FAILED_UNKNOWN_CHANNEL_TYPE,
96 OPEN_FAILED_RESOURCE_SHORTAGE,
97)
99from paramiko.sftp import (
100 SFTP_OK,
101 SFTP_EOF,
102 SFTP_NO_SUCH_FILE,
103 SFTP_PERMISSION_DENIED,
104 SFTP_FAILURE,
105 SFTP_BAD_MESSAGE,
106 SFTP_NO_CONNECTION,
107 SFTP_CONNECTION_LOST,
108 SFTP_OP_UNSUPPORTED,
109)
111from paramiko.common import io_sleep
114# TODO: I guess a real plugin system might be nice for future expansion...
115key_classes = [RSAKey, Ed25519Key, ECDSAKey]
118__author__ = "Jeff Forcier <jeff@bitprophet.org>"
119__license__ = "GNU Lesser General Public License (LGPL)"