Package Skype4Py :: Package API :: Module posix
[frames] | no frames]

Source Code for Module Skype4Py.API.posix

 1  ''' 
 2  Low level Skype for Linux interface. 
 3   
 4  This module handles the options that you can pass to L{ISkype.__init__<skype.ISkype.__init__>} for Linux machines. 
 5  The options include: 
 6   
 7  @newfield option: Option, Options 
 8   
 9  @option: C{Transport} (str) - A transport is a channel used to communicate with Skype client. Currently supported values are: 
10    - C{'x11'} 
11   
12    Uses X11 (libX) messaging. This is the default if no transport is specified. 
13   
14    Look into L{Skype4Py.API.posix_x11} for additional options. 
15   
16    - C{'dbus'} 
17   
18    Uses DBus (python-dbus). 
19   
20    Look into L{Skype4Py.API.posix_dbus} for additional options. 
21  ''' 
22   
23  from Skype4Py.errors import ISkypeAPIError 
24   
25   
26 -def _ISkypeAPI(handler, opts):
27 trans = opts.pop('Transport', 'x11') 28 if trans == 'dbus': 29 from posix_dbus import _ISkypeAPI 30 elif trans == 'x11': 31 from posix_x11 import _ISkypeAPI 32 else: 33 raise ISkypeAPIError('Unknown transport: %s' % trans) 34 return _ISkypeAPI(handler, opts)
35