PyKDE Extensions can be used for the creation of kio-slaves. PyKDE Extensions handles the C++ glue code needed for making kioslaves in Python. developer.kde.org has some documentation about KIO-slaves aimed at C++ programmers.
In your setup.py
file you can specify the list of kioslaves
that need to be installed.
kioslaves = [ ('src/kioslave.protocol','kioslave.py')] )This is just a list of tuples. The first item is name of the
.protocol
file that you've made for your
kio-slave. The second item is the name of the Python program to run when the
user views the module in kcontrol. This program is expected to be in
the application's data files directory.