Package libssh2

[frames] | no frames]

# Source Code for Package libssh2

     1  #
     2  # pylibssh2 - python bindings for libssh2 library
     3  #
     4  # Copyright (C) 2010 Wallix Inc.
     5  #
     6  # This library is free software; you can redistribute it and/or modify it
     7  # under the terms of the GNU Lesser General Public License as published by the
     8  # Free Software Foundation; either version 2.1 of the License, or (at your
     9  # option) any later version.
    10  #
    11  # This library is distributed in the hope that it will be useful, but WITHOUT
    12  # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
    13  # FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
    14  # details.
    15  #
    16  # You should have received a copy of the GNU Lesser General Public License
    17  # along with this library; if not, write to the Free Software Foundation, Inc.,
    18  # 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
    19  #
    20  __doc__ = """Python binding for libssh2 library"""
    21
    22  from version import *
    23
    24  from channel import ChannelException, Channel
    25  from session import SessionException, Session
    26  from sftp import SftpException, Sftp
    27
    28  __all__ = [
    29      'Channel',
    30      'ChannelException',
    31      'Session',
    32      'SessionException',
    33      'Sftp',
    34      'SftpException'
    35  ]
    36
    37  LIBSSH2_TRACE_TRANS = 1<<1
    38  LIBSSH2_TRACE_KEX = 1<<2
    39  LIBSSH2_TRACE_AUTH = 1<<3
    40  LIBSSH2_TRACE_CONN = 1<<4
    41  LIBSSH2_TRACE_SCP = 1<<5
    42  LIBSSH2_TRACE_SFTP = 1<<6
    43  LIBSSH2_TRACE_ERROR = 1<<7
    44  LIBSSH2_TRACE_PUBLICKEY = 1<<8
    45  LIBSSH2_TRACE_SOCKET = 1<<9
    46
    47  LIBSSH2_CALLBACK_X11 = 4
    48