Wednesday, March 25, 2009

Launchpad API for PPAs

I've received few complains about how hard it is to extract information from the Launchpad API documentation for managing PPAs.

I will start a series of post with useful actions for PPA users and owner.

Start by reading the Launchpad API help page and familirize yourself with it. For experiments, I usually use a setup script and jump into a interactive python section.

$ python -i
>>> launchpad
<launchpadlib.launchpad.Launchpad object at 0x13eb0d0>

Now, we can find out what's my PPA signing-key fingerprint:

>>> ppa = launchpad.people['cprov'].archive
>>> print ppa.displayname
PPA for Celso Providelo
>>> print ppa.signing_key_fingerprint

to be continued ...

Posted via web from cprov's posterous

How cool is that ?

I guess I will have to use it a little bit more before saying ...

Posted via web from cprov's posterous