Package Skype4Py
[frames] | no frames]

Package Skype4Py

source code

Skype4Py is a multiplatform Skype API wrapper for Python.

  1. Usage.

    Skype4Py is the package that you should import in your scripts to be able to access Skype. You won't need to import any submodules. Everything you may need will be available at the package level. This includes:

    The first two are the only classes that you will be instantiating directly. Calling their methods/properties will give you the access to instances of all other classes, you won't have to instantiate them yourself. The two classes are also the only ones that provide event handlers (for more information about events, see the EventHandlingBase class which is a baseclass of the above two classes).

    Every Skype4Py script instatinates the Skype4Py.Skype class at least once. That's what you want to do first in your script. Then follow the Skype4Py.skype.ISkype reference to see where you can get from there.

  2. Quick example.

    This short example connects to Skype client and prints the user's full name and the names of all the contacts from the contacts list:

       import Skype4Py
    
       # Create Skype instance
       skype = Skype4Py.Skype()
    
       # Connect Skype object to Skype client
       skype.Attach()
    
       print 'Your full name:', skype.CurrentUser.FullName
       print 'Your contacts:'
       for user in skype.Friends:
           print '    ', user.FullName
    

Author: Arkadiusz Wahlig (arkadiusz.wahlig at googlemail)

Requires: Python 2.4 or newer (not yet 3.0)

See Also: The Skype4Py webpage

License: BSD License (see the accompanying LICENSE file for more information)

Copyright: © 2007-2008 Arkadiusz Wahlig

Version: 1.0.31.0

Submodules

Variables
  __version__ = '1.0.31.0'
The version of Skype4Py.
  __package__ = 'Skype4Py'