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 lpapi_setup.py
>>> 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
DCAC43EE807ADF67495AD95809C5BECB0DC0F66C
to be continued ...
No comments:
Post a Comment