SkypeKit Python Wrapper Reference, version. 4.2


Quick link to SkypeKit Classes


Online resources


  1. SkypeKit Release Notes
  2. SkypeKit overview
  3. SkypeKit runtime versions
  4. Developer Forum

Examples


  1. Login
  2. Contact list
  3. Conversation list
  4. Skype chat
  5. Making a call
  6. Answering a call
  7. Contact search

Overview


Welcome to the SkypeKit SDK Python wrapper. The Python wrapper is compatible and is tested with Python version 2.6.5 - Python versions 3.x are not supported at this time.

This wrapper provides API for building client applications (client UI-s) that work with SkypeKit runtimes. The wrapper also contains UI-side methods for audio and video - i.e. you can initiate audio and video calls using SkypeKit wrapper. On desktop versions of SkypeKit runtime, corresponding functionality is built into runtime itself (unless stated otherwise, for example, runtimes with -novideo suffix do not include video capabilities. Using runtime with no video support has advantage of having smaller memory footprint. All runtimes include support for audio, in one form or another.

The wrapper consists of two modules: Skype and SkypeKit. The Skype module contains SkypeKit classes that you will directly work with. The SkypeKit module contains implementation of transport layer, protocol codec and the rest of the inner workings of the wrapper.

Small disclaimer: As the wrapper and a set of runtimes in the distribution package work in pairs - each version of wrapper is built and tested only against runtimes with the same version. We have taken great pains in our IPC protocol design to make newer versions of the wrapper backward compatible with runtimes released in earlier distro packs, and vice versa, but we can make no guarantees.

NB! You will also need an application keypair file, to connect to the SkypeKit runtime. You can request and download keypair files on your applications page on the Skype Developer website (login needed).

In runtimes with -pcmaudio, -rtpaudio or -rtpvideo tags in their names, the audio library is only partially built into runtime itself. Instead, the SkypeKit runtime has to be accompanied by additional runtimes that interact between SkypeKit runtime and system audio and/or video. This enables you to build SkypeKit applications that work on systems with uncommon audio-video subsystems, such as Skype UI implementations in consumer electronics. However, this subject is out of scope for both SkypeKit UI wrapper and this document. This wrapper only concerns itself with the UI side of things.

Skype functionality is exposed through SkypeKit wrapper as an object oriented API. It consists of classes, class methods, events and properties. All the wrapper classes are reflections of equivalent object instances in the runtime.

The wrapper communicates with runtime over a transport mechanism. Current transport mechanisms are Unix sockets (for Linux builds) and TCP sockets for Microsoft Windows builds. When the runtime launches, it creates a socket server, listening on a specified port (default port is 8963). The wrapper then creates a client socket that connects to the server. SkypeKit uses a binary communication protocol for remote procedure calls, events and property updates. The protocol is optimized to minimize IPC traffic. In that aspect, it is much more efficient than our previous Public and Embedded API protocols that used text-based messaging. Specification of the binary protocol is outside the scope of this document as the wrapper makes the protocol side transparent for UI developers.