[packagekit] PackageKIt Client Python'API

Tim Lauridsen tim.lauridsen at googlemail.com
Tue Sep 16 04:13:04 PDT 2008


Hi

I have extended the work done in python/packagewrapper.py and added it 
as python/packagekit/client.py.

I have added most of the missing PackageKit API calls, not all is 
implemented yet, but subs are added.

This API make it very easy to write PackageKit clients in Python.

Example:

from packagekit.client import PackageKitClient
from packagekit.enums import *

pk = PackageKitClient()

print '---- RefreshCache() -----'''
print pk.RefreshCache()

print '---- Resolve() -----'
pkg = pk.Resolve(FILTER_NONE, ['yum'])
print pkg[0]

Check python/wrapper-test.py for more examples of other API calls

Tim


More information about the PackageKit mailing list